Mr-Help commited on
Commit
7725c29
·
verified ·
1 Parent(s): 9fdab77

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -1
main.py CHANGED
@@ -37,12 +37,17 @@ async def create_list_from_template(request: Request):
37
 
38
  if create_response.status_code == 200:
39
  result = create_response.json()
 
 
 
40
  list_id = result.get("id")
41
 
42
  # Step 2: Fetch the list details
43
  get_url = f"https://api.clickup.com/api/v2/list/{list_id}"
44
  get_response = requests.get(get_url, headers=headers)
45
-
 
 
46
  if get_response.status_code == 200:
47
  list_data = get_response.json()
48
  list_url = list_data.get("url") # ✅ Use built-in full URL
 
37
 
38
  if create_response.status_code == 200:
39
  result = create_response.json()
40
+ print("Creation response")
41
+ print(result)
42
+
43
  list_id = result.get("id")
44
 
45
  # Step 2: Fetch the list details
46
  get_url = f"https://api.clickup.com/api/v2/list/{list_id}"
47
  get_response = requests.get(get_url, headers=headers)
48
+
49
+ print("Get response")
50
+ print(get_response)
51
  if get_response.status_code == 200:
52
  list_data = get_response.json()
53
  list_url = list_data.get("url") # ✅ Use built-in full URL