chore: add pre-commit
This commit is contained in:
@ -6,10 +6,10 @@ from app.utils.config import config
|
||||
|
||||
def __n8n_post(data: dict) -> bool:
|
||||
"""Post data to N8N webhook URL.
|
||||
|
||||
|
||||
Args:
|
||||
data (dict): Data to post to webhook URL.
|
||||
|
||||
|
||||
Returns:
|
||||
bool: True if successful, else False.
|
||||
"""
|
||||
@ -26,13 +26,13 @@ def __n8n_post(data: dict) -> bool:
|
||||
|
||||
def submit_task(summary, description, completion_date, requestor) -> bool:
|
||||
"""Submit task to N8N webhook URL.
|
||||
|
||||
|
||||
Args:
|
||||
summary (str): Summary of task.
|
||||
description (str): Description of task.
|
||||
completion_date (str): Completion date of task.
|
||||
requestor (str): Requestor of task.
|
||||
|
||||
|
||||
Returns:
|
||||
bool: True if successful, else False.
|
||||
"""
|
||||
@ -49,10 +49,10 @@ def submit_task(summary, description, completion_date, requestor) -> bool:
|
||||
|
||||
def get_tasks(requestor) -> bool:
|
||||
"""Get tasks from N8N webhook URL.
|
||||
|
||||
|
||||
Args:
|
||||
requestor (str): Requestor of tasks.
|
||||
|
||||
|
||||
Returns:
|
||||
bool: True if successful, else False.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user