Esempio n. 1
0
def home():
    connect()
    if not session.get('logged_in'):
        return render_template('login.html')
    else:
        order = 0
        message = recent_message(order)
        cm = recent_comment()
        return render_template('index.html', message=message, comment=cm)
Esempio n. 2
0
def most_l():
    order = 3
    message = recent_message(order)
    cm = recent_comment()
    return render_template('index.html', message=message, comment=cm)