Пример #1
0
 def user_default_values():
     alerts = {}
     for a in AlertConstants.ALERTS:
         alerts[a] = 'On'
     attendance = {}
     games = Game.get_games_by_year(Year.get_current_year()._id)
     for i in games:
         if i.location.city == 'Blacksburg':
             attendance[i.game_num] = 'Yes'
         else:
             attendance[i.game_num] = 'No'
     return alerts, attendance
Пример #2
0
def admin_schedule():
    return render_template("games/admin_schedule.jinja2",
                           games=Game.get_games_by_year(
                               Year.get_current_year()._id))