Compare commits
2 Commits
ef861e6bcc
...
8d684856c9
Author | SHA1 | Date | |
---|---|---|---|
|
8d684856c9 | ||
|
ae21a176f7 |
@ -44,6 +44,8 @@ def get_top_dicks():
|
|||||||
return top
|
return top
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@app.route('/metrics')
|
@app.route('/metrics')
|
||||||
def metrics():
|
def metrics():
|
||||||
metrics = ""
|
metrics = ""
|
||||||
@ -69,9 +71,6 @@ def metrics():
|
|||||||
i -= 1
|
i -= 1
|
||||||
upper_dick_size = docks[i][1]
|
upper_dick_size = docks[i][1]
|
||||||
|
|
||||||
if i == 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' % (docks[k][0], docks[k][2], docks[k][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
|
return metrics
|
||||||
|
Loading…
Reference in New Issue
Block a user