Split in multiples files
This commit is contained in:
18
action.py
Normal file
18
action.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import sqlite3
|
||||
import os
|
||||
import argparse
|
||||
import json
|
||||
import getpass
|
||||
import datetime
|
||||
import logging
|
||||
import action
|
||||
|
||||
def create_action(cursor, project_id = '', task_id = '', note_id = '', message = ''):
|
||||
query = """
|
||||
INSERT INTO action (project_id, task_id, note_id, username, message, created_at)
|
||||
VALUES (?, ?, ?, ?, ?, ?);
|
||||
"""
|
||||
|
||||
cursor.execute(query, (project_id, task_id, note_id, getpass.getuser(), message, datetime.datetime.now(),))
|
||||
|
||||
logging.debug('created action')
|
||||
Reference in New Issue
Block a user