views.py
def main():
    """This functions allows to access to web app main page"""
    global data
    if "logged_in" in session and session["logged_in"] == True:
        print("User login", session["username"])
        try:
            count1 = managedb.getCountLoginDB(session["username"])
            if count1 == 0:
                session.clear()
                return redirect(url_for('index'))
            return render_template('main.html', data=data)
        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 web app main page
This functions allows to access to web app main page
This functions allows to access to web app main page
def main():
    global data
    if "logged_in" in session and session["logged_in"] == True:
        print("User login", session["username"])
        try:
            count1 = managedb.getCountLoginDB(session["username"])
            if count1 == 0:
                session.clear()
                return redirect(url_for('index'))
            return render_template('main.html', data=data)
        except Exception as e:
            print("Error DB:",str(e))
            return redirect(url_for('index'))
    return redirect(url_for('index'))
def main ( ) : global data if "logged_in" in session and session [ "logged_in" ] == True : print ( "User login" , session [ "username" ] ) try : count1 = managedb . getCountLoginDB ( session [ "username" ] ) if count1 == 0 : session . clear ( ) return redirect ( url_for ( 'index' ) ) return render_template ( 'main.html' , data = data ) 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 web app main page
This functions allows to access to web app main page
"""This functions allows to access to web app main page"""