Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -45,11 +45,11 @@ async def create_list_from_template(request: Request):
|
|
| 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
|
| 54 |
return {
|
| 55 |
"message": "✅ Video contractor list created successfully.",
|
|
|
|
| 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 |
if get_response.status_code == 200:
|
| 50 |
list_data = get_response.json()
|
| 51 |
+
print("Get response")
|
| 52 |
+
print(list_data)
|
| 53 |
list_url = list_data.get("url") # ✅ Use built-in full URL
|
| 54 |
return {
|
| 55 |
"message": "✅ Video contractor list created successfully.",
|