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
def log(self, *log_data): cursor = db.get_connection(db.DB_NAME) db.insert_values(cursor, self.LOG_TABLE, log_data) cursor.close()
def _init_log_table(self): db.make_table(db.get_connection(db.DB_NAME), self.LOG_TABLE, self.LOG_TABLE_COLS)