|
|
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
|
|
|
|
import json |
|
|
|
|
from datetime import datetime, timedelta |
|
|
|
|
from flask import render_template, redirect, url_for, request, abort, send_file, current_app |
|
|
|
|
from flask import render_template, redirect, url_for, request, abort, send_file, current_app, flash |
|
|
|
|
from flask_login import current_user, login_required |
|
|
|
|
from werkzeug.security import safe_join |
|
|
|
|
from app import db |
|
|
|
@ -41,8 +41,8 @@ def game_dashboard(game_name):
@@ -41,8 +41,8 @@ def game_dashboard(game_name):
|
|
|
|
|
hunter_delay=hunter_delay, json=json, |
|
|
|
|
location_encoder=LocationEncoder) |
|
|
|
|
if role == Role.none: |
|
|
|
|
return render_template('game_hunter_dashboard.html', title='Game Dashboard', game=game, |
|
|
|
|
json=json, location_encoder=LocationEncoder) |
|
|
|
|
flash('Please ask your game owner for a role to join this game') |
|
|
|
|
return abort(403) |
|
|
|
|
if role is None: |
|
|
|
|
abort(403) |
|
|
|
|
|
|
|
|
|