MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / get_user_tasks

Function get_user_tasks

skills/storage-helper/scripts/db_ops.py:1896–1908  ·  view source on GitHub ↗

Get user tasks for the past N days

(user_id: str, days: int = 7)

Source from the content-addressed store, hash-verified

1894 INSERT INTO task_status
1895 (task_id, task_type, user_id, status, started_at)
1896 VALUES (?, ?, ?, 'running', CURRENT_TIMESTAMP)
1897 """, (task_id, task_type, user_id))
1898 conn.commit()
1899 conn.close()
1900 return cursor.lastrowid
1901
1902
1903def update_task_status(
1904 task_id: str,
1905 status: str,
1906 progress_json: Optional[Dict] = None
1907) -> bool:
1908 """Update task status"""
1909 conn = get_connection()
1910 cursor = conn.cursor()
1911

Callers

nothing calls this directly

Calls 6

cursorMethod · 0.80
nowMethod · 0.80
get_connectionFunction · 0.70
executeMethod · 0.45
fetchallMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected