fair_dag.py
def wrap(*args, **kwargs):

        """
        Function checking the login status of user.
        If no login status, redirect to login package
        """

        if 'logged_in' in session and session['logged_in']:
            return f(*args, **kwargs)
        else:
            flash('You need to login first')
            return redirect(url_for('login'))

        Function checking the login status of user.
        If no login status, redirect to login package
        
Function checking the login status of user.
If no login status, redirect to login package
Function checking the login status of user . If no login status redirect to login package
def wrap(*args, **kwargs):
        if 'logged_in' in session and session['logged_in']:
            return f(*args, **kwargs)
        else:
            flash('You need to login first')
            return redirect(url_for('login'))
def wrap ( * args , ** kwargs ) : if 'logged_in' in session and session [ 'logged_in' ] : return f ( * args , ** kwargs ) else : flash ( 'You need to login first' ) return redirect ( url_for ( 'login' ) )
Function checking the login status of user.
Function checking the login status of user .
"""
        Function checking the login status of user.
        If no login status, redirect to login package
        """