Пример #1
0
def agender():
    menu = {'ho':0, 'da':1, 'ml':0, 'se':0, 'co':1, 'cg':0, 'cr':0, 'st':0, 'wc':0}
    date = request.args.get('date', datetime.now().strftime('%Y-%m-%d'))
    rows = dm.get_agender_daily(date)

    return render_template('covid/agender.html', menu=menu, weather=get_weather_main(),
                            date=date, rows=rows)
Пример #2
0
def agender():
    date = request.args.get('date', datetime.now().strftime('%Y-%m-%d'))
    rows = dm.get_agender_daily(date)

    return render_template('covid/agender.html',
                           menu=menu,
                           weather=get_weather_main(),
                           date=date,
                           rows=rows)
Пример #3
0
def update_agender(date):
    rows = dm.get_agender_daily(date)
    if len(rows) == 0:
        cu.get_agender_by_date(date)

    return redirect(url_for('covid_bp.agender') + f'?date={date}')