Exemple #1
0
 def submit_entrys_day(self, db, param_list, del_day=False):
     if(del_day and len(param_list) > 0):
         self.delete_day(db, param_list[0], False)
     return submit_many_db(db, SQL_SCHEDULE_INSERT_ENTRY, param_list)
Exemple #2
0
def delete_notifications(db, notifications):
    if len(notifications) <= 0:
        return 0
    return database.submit_many_db(db, sql_commands.SQL_NOTIFICATION_DELETE_ENTRY, notifications)
Exemple #3
0
def delete_schedules(db, schedules):
    if len(schedules) <= 0:
        return 0
    return database.submit_many_db(db, sql_commands.SQL_SCHEDULE_DELETE_ENTRY, schedules)
Exemple #4
0
def insert_notifications(db, notifications):
    if len(notifications) <= 0:
        return 0
    return database.submit_many_db(db, sql_commands.SQL_NOTIFICATION_INSERT_ENTRY, notifications)
Exemple #5
0
def insert_schedules(db, schedules):
    if len(schedules) <= 0:
        return 0
    return database.submit_many_db(db, sql_commands.SQL_SCHEDULE_INSERT_ENTRY, schedules)