another fix
This commit is contained in:
@@ -98,6 +98,7 @@ def get_pending_command():
|
|||||||
build_cmd = _fetch_pending_of_type(c, 'build', player_id)
|
build_cmd = _fetch_pending_of_type(c, 'build', player_id)
|
||||||
recruit_cmd = _fetch_pending_of_type(c, 'recruit', player_id)
|
recruit_cmd = _fetch_pending_of_type(c, 'recruit', player_id)
|
||||||
market_cmd = _fetch_pending_of_type(c, 'market_offer', 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.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
@@ -106,7 +107,7 @@ def get_pending_command():
|
|||||||
'build': build_cmd,
|
'build': build_cmd,
|
||||||
'recruit': recruit_cmd,
|
'recruit': recruit_cmd,
|
||||||
'market': market_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):
|
def _check_and_reset_sync(c, player_id):
|
||||||
|
|||||||
Reference in New Issue
Block a user