예제 #1
0
파일: app.py 프로젝트: hosackm/gohome_
def week(wk):
    try:
        worst = db.get_worst(wk)
    except:
        worst = {}
    finally:
        return render_template("index.html", worst=worst)
예제 #2
0
파일: app.py 프로젝트: hosackm/gohome_
def index():
    latest = [w for w in db.available_weeks()][-1]
    worst = db.get_worst(latest)
    return render_template("index.html", worst=worst)