saiteki-kai commited on
Commit
77512b2
·
verified ·
1 Parent(s): 29c497f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -16,11 +16,11 @@ print(supabase)
16
 
17
  def load_registered_teams():
18
  result = supabase.table("teams").select("*").execute()
19
-
20
- if "data" not in result:
21
- raise RuntimeError("An error occurred")
22
 
23
- return {team["name"].casefold(): team["name"] for team in result["data"]}
24
 
25
  REGISTERED_TEAMS = load_registered_teams()
26
 
 
16
 
17
  def load_registered_teams():
18
  result = supabase.table("teams").select("*").execute()
19
+ print(result)
20
+ #if "data" not in result:
21
+ # raise RuntimeError("An error occurred")
22
 
23
+ return {team["name"].casefold(): team["name"] for team in result.data}
24
 
25
  REGISTERED_TEAMS = load_registered_teams()
26