battlepoint show
This commit is contained in:
@@ -60,6 +60,7 @@ def receive_state():
|
||||
player_id = data.get('player_id', '')
|
||||
alliance_id = str(data.get('alliance_id', '') or '')
|
||||
world_id = data.get('world_id', '')
|
||||
battle_points = data.get('battle_points', {})
|
||||
|
||||
# Auto-register this player to the clan that matches the key (if any)
|
||||
clan = _get_clan_from_request()
|
||||
@@ -72,6 +73,7 @@ def receive_state():
|
||||
x = town.get('x')
|
||||
y = town.get('y')
|
||||
sea = town.get('sea')
|
||||
town['battle_points'] = battle_points
|
||||
c.execute('''
|
||||
INSERT INTO town_state
|
||||
(town_id, town_name, player, player_id, alliance_id, world_id, x, y, sea, data, updated_at)
|
||||
|
||||
Reference in New Issue
Block a user