From 8a64a7b4fc5fd427cb3a39013d04430bab7efb7d Mon Sep 17 00:00:00 2001 From: haunter Date: Sat, 25 Apr 2026 15:25:18 +0300 Subject: [PATCH] fix --- routes/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/dashboard.py b/routes/dashboard.py index 2fa433e..bc80c04 100644 --- a/routes/dashboard.py +++ b/routes/dashboard.py @@ -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', 'farm_upgrade'): - return jsonify({'error': 'type must be build, recruit, market_offer, farm_loot, or farm_upgrade'}), 400 + 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, farm_upgrade, or research'}), 400 # Reject if the Tampermonkey client is offline (no state push in last 150 s) conn = get_db()