Update app.py
Browse files
app.py
CHANGED
@@ -92,6 +92,10 @@ def submit_profile(name, discord, city, country, address, looking, onlinecheck,
|
|
92 |
return "✅ Profile saved!"
|
93 |
|
94 |
def filter_by_fields(selected_country, selected_city, selected_language, page):
|
|
|
|
|
|
|
|
|
95 |
offset = (page - 1) * PAGE_SIZE
|
96 |
|
97 |
query = "SELECT * FROM teamup"
|
|
|
92 |
return "✅ Profile saved!"
|
93 |
|
94 |
def filter_by_fields(selected_country, selected_city, selected_language, page):
|
95 |
+
try:
|
96 |
+
page = int(page)
|
97 |
+
except:
|
98 |
+
page = 1
|
99 |
offset = (page - 1) * PAGE_SIZE
|
100 |
|
101 |
query = "SELECT * FROM teamup"
|