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)
def delete_notifications(db, notifications): if len(notifications) <= 0: return 0 return database.submit_many_db(db, sql_commands.SQL_NOTIFICATION_DELETE_ENTRY, notifications)
def delete_schedules(db, schedules): if len(schedules) <= 0: return 0 return database.submit_many_db(db, sql_commands.SQL_SCHEDULE_DELETE_ENTRY, schedules)
def insert_notifications(db, notifications): if len(notifications) <= 0: return 0 return database.submit_many_db(db, sql_commands.SQL_NOTIFICATION_INSERT_ENTRY, notifications)
def insert_schedules(db, schedules): if len(schedules) <= 0: return 0 return database.submit_many_db(db, sql_commands.SQL_SCHEDULE_INSERT_ENTRY, schedules)