Exemple #1
0
def api_log_today():
        s = current_user.today()
        return jsonify({'user': current_user.username,
                        'check-ins': s})
Exemple #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)