various fixes totest
This commit is contained in:
@@ -100,7 +100,19 @@ def player_tracker(player_id, world_id):
|
||||
@dashboard.route('/player/<player_id>/<world_id>/attack-planner')
|
||||
@login_required
|
||||
def player_attack_planner(player_id, world_id):
|
||||
return render_template('attack_planner.html', player_id=player_id, world_id=world_id)
|
||||
clan_key = ''
|
||||
if current_user.clan_id:
|
||||
conn = get_db()
|
||||
clan = conn.execute(
|
||||
'SELECT clan_key FROM clans WHERE id = ?', (current_user.clan_id,)
|
||||
).fetchone()
|
||||
conn.close()
|
||||
if clan:
|
||||
clan_key = clan['clan_key']
|
||||
return render_template('attack_planner.html',
|
||||
player_id=player_id,
|
||||
world_id=world_id,
|
||||
clan_key=clan_key)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user