Spaces:
Running
Running
Olivier-Truong
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -96,6 +96,10 @@ def responsesFrom(ip):
|
|
96 |
@app.route('/api')
|
97 |
def apiRooms():
|
98 |
global freeRooms
|
|
|
|
|
|
|
|
|
99 |
return json.dumps(freeRooms)
|
100 |
|
101 |
|
|
|
96 |
@app.route('/api')
|
97 |
def apiRooms():
|
98 |
global freeRooms
|
99 |
+
try:
|
100 |
+
print(request.environ['HTTP_X_FORWARDED_FOR'])
|
101 |
+
except:
|
102 |
+
pass
|
103 |
return json.dumps(freeRooms)
|
104 |
|
105 |
|