From a8c7512b67e8180eab718c51681d27de39fdda62 Mon Sep 17 00:00:00 2001 From: haunter Date: Wed, 22 Apr 2026 20:54:24 +0300 Subject: [PATCH] another fix --- routes/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/api.py b/routes/api.py index bdc67c5..0b2e8d2 100644 --- a/routes/api.py +++ b/routes/api.py @@ -98,6 +98,7 @@ def get_pending_command(): build_cmd = _fetch_pending_of_type(c, 'build', player_id) recruit_cmd = _fetch_pending_of_type(c, 'recruit', player_id) market_cmd = _fetch_pending_of_type(c, 'market_offer', player_id) + sync_req = _check_and_reset_sync(c, player_id) conn.commit() conn.close() @@ -106,7 +107,7 @@ def get_pending_command(): 'build': build_cmd, 'recruit': recruit_cmd, 'market': market_cmd, - 'sync_requested': _check_and_reset_sync(c, player_id) + 'sync_requested': sync_req }) def _check_and_reset_sync(c, player_id):