2 bugs / farm and bandit

This commit is contained in:
2026-05-02 02:21:32 +03:00
parent 6157ae1034
commit d8ba139d07
3 changed files with 16 additions and 19 deletions

View File

@@ -437,9 +437,12 @@ def upload_market_data():
@api.route('/api/farm_status', methods=['POST', 'GET'])
def farm_status():
player_id = request.args.get('player_id')
world_id = request.args.get('world_id')
if not player_id:
return jsonify({'error': 'no player_id'}), 400
kv_key = f'farm_status_{player_id}'
player_key = f"{player_id}_{world_id}" if world_id else player_id
kv_key = f'farm_status_{player_key}'
conn = get_db()
if request.method == 'POST':
data = request.get_json(silent=True) or {}