Update main.py
Browse files
main.py
CHANGED
@@ -32,7 +32,6 @@ async def read_root():
|
|
32 |
|
33 |
@app.get("/start_model_trigger")
|
34 |
async def model_trigger(page:int):
|
35 |
-
for page in range(page,page+2):
|
36 |
page = str(page)
|
37 |
url = "https://api-ai-service.transexpress.lk/trigger_the_data_fecher?page="+page+"&paginate=10000"
|
38 |
print(url,page)
|
@@ -45,7 +44,6 @@ async def model_trigger(page:int):
|
|
45 |
response = requests.request("GET", url, headers=headers, data=payload)
|
46 |
|
47 |
print(response.text)
|
48 |
-
|
49 |
-
return page
|
50 |
|
51 |
|
|
|
32 |
|
33 |
@app.get("/start_model_trigger")
|
34 |
async def model_trigger(page:int):
|
|
|
35 |
page = str(page)
|
36 |
url = "https://api-ai-service.transexpress.lk/trigger_the_data_fecher?page="+page+"&paginate=10000"
|
37 |
print(url,page)
|
|
|
44 |
response = requests.request("GET", url, headers=headers, data=payload)
|
45 |
|
46 |
print(response.text)
|
47 |
+
return page
|
|
|
48 |
|
49 |
|