obj/visualizers.py
def verdict(userid, what, admin, adminid):
    '''message that will be sent to the user to let him know wheter his request has been accepted'''
    d.execute("SELECT * FROM request WHERE userid=?", (userid, ))
    ex = d.fetchone()
    userid = str(userid)
    adminid = str(adminid)
    name = ex[0]
    lnk = ex[1]
    nameuser = ex[4]
    if what is True:
        tosend = (p["verdict"][0] % (nameuser, userid, admin, adminid, name, lnk))
    elif what is False:
        tosend = (p["verdict"][1] % (nameuser, userid, admin, adminid, name, lnk))
    else:
        tosend = (p["verdict"][2] % (nameuser, userid, admin, adminid, name, lnk))
    return tosend
message that will be sent to the user to let him know wheter his request has been accepted
message that will be sent to the user to let him know wheter his request has been accepted
message that will be sent to the user to let him know wheter his request has been accepted
def verdict(userid, what, admin, adminid):
    d.execute("SELECT * FROM request WHERE userid=?", (userid, ))
    ex = d.fetchone()
    userid = str(userid)
    adminid = str(adminid)
    name = ex[0]
    lnk = ex[1]
    nameuser = ex[4]
    if what is True:
        tosend = (p["verdict"][0] % (nameuser, userid, admin, adminid, name, lnk))
    elif what is False:
        tosend = (p["verdict"][1] % (nameuser, userid, admin, adminid, name, lnk))
    else:
        tosend = (p["verdict"][2] % (nameuser, userid, admin, adminid, name, lnk))
    return tosend
def verdict ( userid , what , admin , adminid ) : d . execute ( "SELECT * FROM request WHERE userid=?" , ( userid , ) ) ex = d . fetchone ( ) userid = str ( userid ) adminid = str ( adminid ) name = ex [ 0 ] lnk = ex [ 1 ] nameuser = ex [ 4 ] if what is True : tosend = ( p [ "verdict" ] [ 0 ] % ( nameuser , userid , admin , adminid , name , lnk ) ) elif what is False : tosend = ( p [ "verdict" ] [ 1 ] % ( nameuser , userid , admin , adminid , name , lnk ) ) else : tosend = ( p [ "verdict" ] [ 2 ] % ( nameuser , userid , admin , adminid , name , lnk ) ) return tosend
message that will be sent to the user to let him know wheter his request has been accepted
message that will be sent to the user to let him know wheter his request has been accepted
'''message that will be sent to the user to let him know wheter his request has been accepted'''
userid
what
admin
adminid