From e25ae8eecc335a7768b72bd8a9de9143303c1f58 Mon Sep 17 00:00:00 2001 From: spla Date: Tue, 17 Nov 2020 16:29:26 +0100 Subject: [PATCH] Fix #1 and forget oldest queries --- mastochess.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mastochess.py b/mastochess.py index 4e0e1a9..d6a9118 100644 --- a/mastochess.py +++ b/mastochess.py @@ -120,7 +120,7 @@ def get_new_notifications(): if last_posted != "": - if last_notif_created_at == last_posted: + if last_notif_created_at <= last_posted: cur.close() @@ -659,6 +659,8 @@ def next_move(playing_user): def replying(): + reply = False + moving = '' content = cleanhtml(text) @@ -815,7 +817,7 @@ if __name__ == '__main__': n_created_datetime = n_created_at.strftime("%d/%m/%Y, %H:%M:%S") - if n_created_datetime < last_posted: + if n_created_datetime <= last_posted: i +=1