This commit is contained in:
kr0sh512
2024-12-14 23:12:31 +03:00
parent d7f499e5c6
commit b898950f11
3 changed files with 93 additions and 2 deletions
+3
View File
@@ -195,6 +195,9 @@ def new_message(message: types.Message) -> int:
def check_old_notes() -> list[int, str, int]: # возвращает первую устаревшую заметку
users = yaml.safe_load(open(users_path, "r", encoding="utf-8"))
if not users:
users = {}
for user_id in users.keys():
notes = yaml.safe_load(open(user_path.format(user_id), "r", encoding="utf-8"))