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