maringetxway commited on
Commit
53b15b0
·
verified ·
1 Parent(s): 36075c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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"