Exemple #1
0
 def update_assignments_table(self, name, formula, start, deadline, visible):
     ''' 
     insert a new row to the assignments table with the details
     '''
     num = db.add_assignment(name, formula, start, deadline, visible, conn)
     # return id of new assignment
     return num
Exemple #2
0
 def update_assignments_table(self):
     '''
     insert a new row to the assignments table with the details
     '''
     num = db.add_assignment(self.name_entry.get(), self.formula,
                             self.deadline_entry.get(),
                             self.visible_entry.get(), conn)
     # return id of new assignment
     return num
Exemple #3
0
 def update_assignments_table(
         self):  # MODIFIED FOR LEADERBOARD: Added start
     '''
     insert a new row to the assignments table with the details
     '''
     num = db.add_assignment(self.name_entry.get(), self.formula,
                             self.start_entry.get(),
                             self.deadline_entry.get(),
                             self.visible_entry.get(), conn)
     # return id of new assignment
     return num
 def setUp(self):
     db.add_assignment("a5", "subj1: 1+60", "2017/15/08", "0", conn)