Exemple #1
0
 def _get_task_data(cls, task):
     """
     :type task: str
     :rtype: list or None
     """
     entries = db.select(db.get_connection(db.DB_NAME), cls.LOG_TABLE, 'task_name', task)
     return entries
Exemple #2
0
 def log(self, *log_data):
     cursor = db.get_connection(db.DB_NAME)
     db.insert_values(cursor, self.LOG_TABLE, log_data)
     cursor.close()
Exemple #3
0
 def _init_log_table(self):
     db.make_table(db.get_connection(db.DB_NAME), self.LOG_TABLE, self.LOG_TABLE_COLS)