Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -73,7 +73,7 @@ class APIGuardMiddleware(BaseHTTPMiddleware):
|
|
73 |
async with r.pipeline(transaction=True) as pipeline:
|
74 |
try:
|
75 |
res = await pipeline.get(client_ip_addr).execute()
|
76 |
-
res = res[-1]
|
77 |
except:
|
78 |
res = None
|
79 |
|
|
|
73 |
async with r.pipeline(transaction=True) as pipeline:
|
74 |
try:
|
75 |
res = await pipeline.get(client_ip_addr).execute()
|
76 |
+
res = int(res[-1])
|
77 |
except:
|
78 |
res = None
|
79 |
|