NikilDGr8 commited on
Commit
22bb342
1 Parent(s): 75c0bd4

prolly final

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -142,7 +142,7 @@ def save_answers(*args):
142
  # Function to download table as CSV
143
  def download_table_to_csv():
144
  # Fetch data from Supabase table
145
- response = supabase.table(oral_health_assessments).select("*").execute()
146
 
147
  # Check if data is available
148
  if not response.data:
@@ -168,7 +168,7 @@ def download_table_to_csv():
168
  writer = csv.writer(f)
169
  writer.writerows(csv_data)
170
 
171
- print(f"Downloaded table '{oral_health_assessments}' to '{csv_file}'")
172
  return csv_file
173
 
174
  def gradio_download():
 
142
  # Function to download table as CSV
143
  def download_table_to_csv():
144
  # Fetch data from Supabase table
145
+ response = supabase.table("oral_health_assessments").select("*").execute()
146
 
147
  # Check if data is available
148
  if not response.data:
 
168
  writer = csv.writer(f)
169
  writer.writerows(csv_data)
170
 
171
+ print(f"Downloaded table oral_health_assessments" to '{csv_file}'")
172
  return csv_file
173
 
174
  def gradio_download():