Metrics added

This commit is contained in:
2025-05-08 12:19:36 +10:00
parent a67531ce98
commit 1f3b4ec80f
5 changed files with 34 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
from db_logic import collections
from handlers.metrics import metric_wrap
import datetime, logging
@@ -58,6 +59,7 @@ def update_dick_size(message, user, updatedDick ):
overwrite_mode='update'
)
metric_wrap(message.from_user.full_name,updatedDick,user['attempts'] + 1)
logging.info(f'Успешно апдейтнули пипису @{message.from_user.username}')
except Exception as e2:
logging.error(f'ошибка DB в /dick :: обновление пиписы @{message.from_user.username}')