Saving current progress with change from using Query() to Path()
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime, json, os, pathlib, pytz, secrets, shutil, time
|
||||
import pandas, xlrd # qrcode
|
||||
from fastapi import APIRouter, Body, Depends, File, Header, HTTPException, Query, Response, status, UploadFile
|
||||
from fastapi import APIRouter, Body, Depends, File, Header, HTTPException, Path, Query, Response, status, UploadFile
|
||||
from pydantic import BaseModel, EmailStr, Field
|
||||
from typing import Dict, List, Optional, Set, Union
|
||||
|
||||
@@ -40,7 +40,7 @@ router = APIRouter()
|
||||
# Updated 2023-01-12
|
||||
@router.post('/event/{event_id}/badge/import', response_model=Resp_Body_Base)
|
||||
async def event_id_badge_import(
|
||||
event_id: str = Query(..., min_length=11, max_length=22),
|
||||
event_id: str = Path(min_length=11, max_length=22),
|
||||
file: UploadFile = File(...),
|
||||
|
||||
begin_at: int = 0,
|
||||
|
||||
Reference in New Issue
Block a user