Arafath10 commited on
Commit
9f8b128
1 Parent(s): a00554a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -3
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
- print(page)
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