Update app.py
Browse files
app.py
CHANGED
@@ -524,8 +524,7 @@ class ApiRotator:
|
|
524 |
|
525 |
@app.get("/stories/{username}")
|
526 |
async def get_stories(username: str, cached: bool = False):
|
527 |
-
|
528 |
-
|
529 |
if rate_limiter.is_rate_limited(user_ip):
|
530 |
current_count = rate_limiter.get_current_count(user_ip)
|
531 |
raise HTTPException(
|
|
|
524 |
|
525 |
@app.get("/stories/{username}")
|
526 |
async def get_stories(username: str, cached: bool = False):
|
527 |
+
user_ip = get_user_ip(request)
|
|
|
528 |
if rate_limiter.is_rate_limited(user_ip):
|
529 |
current_count = rate_limiter.get_current_count(user_ip)
|
530 |
raise HTTPException(
|