This commit is contained in:
parent
cbb2d5de99
commit
ef861e6bcc
@ -60,7 +60,7 @@ def metrics():
|
||||
### не самый красивый код для не самой красивой ситуации
|
||||
|
||||
if k == 0:
|
||||
metrics += 'pipisio_topdick_distanso{user="%s", user_id="%s", chat_id="%s"} %s\n' % (dick[0], dick[2], dick[3], 0)
|
||||
metrics += 'pipisio_topdick_distanso{user="%s", user_id="%s", chat_id="%s"} %s\n' % (docks[k][0], docks[k][2], docks[k][3], 0)
|
||||
else:
|
||||
|
||||
i = k - 1
|
||||
@ -70,9 +70,9 @@ def metrics():
|
||||
upper_dick_size = docks[i][1]
|
||||
|
||||
if i == 0:
|
||||
metrics += 'pipisio_topdick_distanso{user="%s", user_id="%s", chat_id="%s"} %s\n' % (dick[0], dick[2], dick[3], 0)
|
||||
metrics += 'pipisio_topdick_distanso{user="%s", user_id="%s", chat_id="%s"} %s\n' % (docks[k][0], docks[k][2], docks[k][3], 0)
|
||||
else:
|
||||
metrics += 'pipisio_topdick_distanso{user="%s", user_id="%s", chat_id="%s"} %s\n' % (dick[0], dick[2], dick[3], (upper_dick_size - docks[k][1]))
|
||||
metrics += 'pipisio_topdick_distanso{user="%s", user_id="%s", chat_id="%s"} %s\n' % (docks[k][0], docks[k][2], docks[k][3], (upper_dick_size - docks[k][1]))
|
||||
|
||||
return metrics
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user