views.py
def home():
    """This functions allows to access to user management page"""
    if "logged_in" in session and session["logged_in"] == True:
        print("User login", session["username"])
        try:
            count1 = managedb.getCountLoginDB(session["username"])
            if count1 == 0:
                return redirect(url_for('index'))
            return render_template('/admin/index.html')
        except Exception as e:
            print("Error DB:",str(e))
            return redirect(url_for('index'))
    return redirect(url_for('index'))
This functions allows to access to user management page
This functions allows to access to user management page
This functions allows to access to user management page
def home():
    if "logged_in" in session and session["logged_in"] == True:
        print("User login", session["username"])
        try:
            count1 = managedb.getCountLoginDB(session["username"])
            if count1 == 0:
                return redirect(url_for('index'))
            return render_template('/admin/index.html')
        except Exception as e:
            print("Error DB:",str(e))
            return redirect(url_for('index'))
    return redirect(url_for('index'))
def home ( ) : if "logged_in" in session and session [ "logged_in" ] == True : print ( "User login" , session [ "username" ] ) try : count1 = managedb . getCountLoginDB ( session [ "username" ] ) if count1 == 0 : return redirect ( url_for ( 'index' ) ) return render_template ( '/admin/index.html' ) except Exception as e : print ( "Error DB:" , str ( e ) ) return redirect ( url_for ( 'index' ) ) return redirect ( url_for ( 'index' ) )
This functions allows to access to user management page
This functions allows to access to user management page
"""This functions allows to access to user management page"""