Exemplo n.º 1
0
def api_get_specific(wk):

    return jsonify({'user': current_user.username,
                    'check-ins': current_user.get_week(wk)})
Exemplo n.º 2
0
def main():
    weeknum = datetime.date.today().isocalendar()[1]
    s = current_user.today()
    c = json.dumps(current_user.get_week(weeknum))
    return render_template("main.html", data=s, fdata=c)