LapStore commited on
Commit ·
e194a66
1
Parent(s): f5ec736
debug
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- __pycache__/server.cpython-311.pyc +0 -0
- app.py +2 -9
__pycache__/app.cpython-311.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
|
__pycache__/server.cpython-311.pyc
CHANGED
|
Binary files a/__pycache__/server.cpython-311.pyc and b/__pycache__/server.cpython-311.pyc differ
|
|
|
app.py
CHANGED
|
@@ -30,18 +30,11 @@ async def add_process_time_header(request: Request, call_next):
|
|
| 30 |
|
| 31 |
@app.exception_handler(429)
|
| 32 |
async def rate_limit_exceeded(request: Request, exc):
|
| 33 |
-
|
| 34 |
return JSONResponse(
|
| 35 |
status_code=429,
|
| 36 |
content={"detail": "Too Many Requests ,please just try 3 times per hour"},
|
| 37 |
-
)
|
| 38 |
-
return JSONResponse(
|
| 39 |
-
status_code=429,
|
| 40 |
-
content={
|
| 41 |
-
"detail": "Too Many Requests ,please just try 3 times per hour",
|
| 42 |
-
"status": 0
|
| 43 |
-
})
|
| 44 |
-
|
| 45 |
|
| 46 |
|
| 47 |
# Root route
|
|
|
|
| 30 |
|
| 31 |
@app.exception_handler(429)
|
| 32 |
async def rate_limit_exceeded(request: Request, exc):
|
| 33 |
+
|
| 34 |
return JSONResponse(
|
| 35 |
status_code=429,
|
| 36 |
content={"detail": "Too Many Requests ,please just try 3 times per hour"},
|
| 37 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
# Root route
|