Richard Guo commited on
Commit
85ebb29
·
1 Parent(s): 19a3899

commenting out important routes

Browse files
Files changed (1) hide show
  1. main.py +11 -11
main.py CHANGED
@@ -59,18 +59,18 @@ async def cleanup_tasks():
59
  del tasks[task_id]
60
  await asyncio.sleep(1800) # Wait for 30 minutes
61
 
62
- @app.get("/", response_class=HTMLResponse)
63
- async def read_form(request: Request):
64
- # Render the form.html template
65
- return templates.TemplateResponse("form.html", {"request": request})
66
 
67
- @app.post("/submit_form")
68
- async def form_post(background_tasks: BackgroundTasks, dataset_name: str = Form(...)):
69
- task_id = str(uuid4())
70
- tasks[task_id] = {'status': 'running'}
71
- #form_data = DatasetForm(dataset_name=dataset_name)
72
- background_tasks.add_task(upload_atlas_task, task_id, dataset_name)
73
- return {'task_id': task_id}
74
 
75
  @app.get("/status/{task_id}")
76
  async def read_task(task_id: str):
 
59
  del tasks[task_id]
60
  await asyncio.sleep(1800) # Wait for 30 minutes
61
 
62
+ # @app.get("/", response_class=HTMLResponse)
63
+ # async def read_form(request: Request):
64
+ # # Render the form.html template
65
+ # return templates.TemplateResponse("form.html", {"request": request})
66
 
67
+ # @app.post("/submit_form")
68
+ # async def form_post(background_tasks: BackgroundTasks, dataset_name: str = Form(...)):
69
+ # task_id = str(uuid4())
70
+ # tasks[task_id] = {'status': 'running'}
71
+ # #form_data = DatasetForm(dataset_name=dataset_name)
72
+ # background_tasks.add_task(upload_atlas_task, task_id, dataset_name)
73
+ # return {'task_id': task_id}
74
 
75
  @app.get("/status/{task_id}")
76
  async def read_task(task_id: str):