cursor = self.postgres_db.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
query = "SELECT id FROM submissions WHERE round_id = "{}" AND user_id != "{}" AND inserted_at < "{}" ORDER BY inserted_at DESC".format(round_id, user_id, end_time)
cursor.execute(query)
results = cursor.fetchall()cursor.close()
return results
def get_date_created(self, submission_id):
Get the date create for a submission