def get_current_user():
if not '<STR_LIT>' in session:<EOL><INDENT>return None<EOL><DEDENT>user = User.query.filter(User.id == session['<STR_LIT>']).first()<EOL>if not user:<EOL><INDENT>signout_user()<EOL>return None<EOL><DEDENT>return user<EOL>
Get current user.