Beispiel #1
0
def getUsers():
    mycursor.execute("SELECT * FROM USERS")
    return mycursor.fetchall()
Beispiel #2
0
def getRandomId(str, id):
    print("SELECT " + str + "_id from " + str + "s where " + str + "_id='" +
          id + "';")
    mycursor.execute("SELECT " + str + "_id from " + str + "s where " + str +
                     "_id='" + id + "';")
    return mycursor.fetchall()
Beispiel #3
0
def getTasks(user_id):
    mycursor.execute("SELECT * FROM TASKS where user_id='" + user_id + "';")
    return mycursor.fetchall()
Beispiel #4
0
def getCandidates():
    mycursor.execute("SELECT * FROM CANDIDATES")
    return mycursor.fetchall()
Beispiel #5
0
def getPlacedCandidates():
    mycursor.execute("SELECT * FROM CANDIDATES where state='4'")
    return mycursor.fetchall()
Beispiel #6
0
def getHiringCandidates():
    mycursor.execute("SELECT * FROM CANDIDATES where state='0'")
    return mycursor.fetchall()
Beispiel #7
0
def getInterviews():
    mycursor.execute("SELECT * FROM INTERVIEWS")
    return mycursor.fetchall()