another fix

This commit is contained in:
2026-04-22 20:54:24 +03:00
parent f7016f5f0d
commit a8c7512b67

View File

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