This commit is contained in:
2026-04-25 15:25:18 +03:00
parent 853525d8ad
commit 8a64a7b4fc

View File

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