unlock village and fixes

This commit is contained in:
2026-04-23 22:54:08 +03:00
parent 73037c510c
commit 6f7fce1c1a
4 changed files with 188 additions and 9 deletions

View File

@@ -266,8 +266,8 @@ def create_command():
return jsonify({'error': f'missing field: {field}'}), 400
cmd_type = data['type']
if cmd_type not in ('build', 'recruit', 'market_offer', 'farm_loot'):
return jsonify({'error': 'type must be build, recruit, market_offer, or farm_loot'}), 400
if cmd_type not in ('build', 'recruit', 'market_offer', 'farm_loot', 'farm_upgrade'):
return jsonify({'error': 'type must be build, recruit, market_offer, farm_loot, or farm_upgrade'}), 400
# Reject if the Tampermonkey client is offline (no state push in last 150 s)
conn = get_db()