def users(): if session.get('username'): system = System() login_user = system.getUser(session.get('username')) customers = system.customers() return render_template('users.html', login_user=login_user, customers=customers) return redirect('/')
def users(): if 'username' in session: db.session.commit() ####### Make recent hit to the system = System() login_user = system.getUser(session.get('username')) customers = system.customers() return render_template('users.html', login_user=login_user, customers=customers) return redirect('/')