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):