Fix Counter bug.

This commit is contained in:
Rykov7
2023-12-24 19:39:58 +03:00
parent 003bde77fc
commit b44d270789
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ def reset_report_stats(chat_id):
def update_stats(message: types.Message):
if not Path(f"{DATA}{message.chat.id}").exists():
if not Path(f"{DATA}{message.chat.id}.db").exists():
reset_report_stats(message.chat.id)
with shelve.open(f"{DATA}{message.chat.id}", writeback=True) as shelve_db:
if "Messages" not in shelve_db: