Mr-Help commited on
Commit
b2a91f1
·
verified ·
1 Parent(s): 10ba9b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -76,6 +76,9 @@ async def create_task(request: Request):
76
 
77
  # Strategy task logic
78
  if task_type.lower() == "strategy":
 
 
 
79
  web_app_url = "https://script.google.com/macros/s/AKfycby_sSlSIstfFWWAcod1Rs9oCe0fFOgmE-RKJUqxFe8JAuASdNjdJpuhMjIrh0bF8tyJ/exec"
80
  params = {
81
  "mode": "extended",
@@ -94,13 +97,15 @@ async def create_task(request: Request):
94
  assignee_ids = response_data.get("assigneeIds", [])
95
  print(f"Assignee IDs: {assignee_ids}")
96
 
 
 
 
97
  # Prepare ClickUp task payload
98
  payload = {
99
  "name": task_title,
100
  "description": description,
101
  "assignees": assignee_ids,
102
- "priority": 2, # Normal priority
103
- "status": "backlog"
104
  }
105
 
106
  if deadline:
 
76
 
77
  # Strategy task logic
78
  if task_type.lower() == "strategy":
79
+ status = "to do"
80
+ print(f"Status: {status}")
81
+
82
  web_app_url = "https://script.google.com/macros/s/AKfycby_sSlSIstfFWWAcod1Rs9oCe0fFOgmE-RKJUqxFe8JAuASdNjdJpuhMjIrh0bF8tyJ/exec"
83
  params = {
84
  "mode": "extended",
 
97
  assignee_ids = response_data.get("assigneeIds", [])
98
  print(f"Assignee IDs: {assignee_ids}")
99
 
100
+ notify_numbers = response_data.get("notifyNumbers", [])
101
+ print(f"Notify Numbers: {notify_numbers}")
102
+
103
  # Prepare ClickUp task payload
104
  payload = {
105
  "name": task_title,
106
  "description": description,
107
  "assignees": assignee_ids,
108
+ "status": status
 
109
  }
110
 
111
  if deadline: