Demo entry 6760759

testing

   

Submitted by anonymous on Sep 18, 2018 at 06:07
Language: Python 3. Code size: 175 Bytes.

def before_request():
    if current_user.is_authenticated:
        current_user.last_seen = datetime.utcnow()
        db.session.commit()
    g.locale = str(get_locale())

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).