dwipper commited on
Commit
27ff3e2
·
1 Parent(s): e9b6953

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -40,14 +40,15 @@ HEADERS = {
40
  def get_policies(school_selection):
41
 
42
  AIRTABLE_ENDPOINT = f'https://api.airtable.com/v0/{base_id}/{policies_table_name}'
43
-
 
44
  # Parameters for the API request to filter by 'school' field and retrieve 'policy_text'
45
  params = {
46
  'filterByFormula': "OR({})".format(','.join(["school='{}'".format(school) for school in school_selection])),
47
  'fields[]': 'policy_text', # Replace with the name of your field
48
  }
49
 
50
- print(params)
51
 
52
  try:
53
  # Send a GET request to the Airtable API
@@ -77,7 +78,7 @@ def get_policies(school_selection):
77
  except Exception as e:
78
  print(f"An error occurred: {str(e)}")
79
 
80
- print(concatenated_policies)
81
 
82
  return concatenated_policies
83
 
 
40
  def get_policies(school_selection):
41
 
42
  AIRTABLE_ENDPOINT = f'https://api.airtable.com/v0/{base_id}/{policies_table_name}'
43
+ school = ''
44
+
45
  # Parameters for the API request to filter by 'school' field and retrieve 'policy_text'
46
  params = {
47
  'filterByFormula': "OR({})".format(','.join(["school='{}'".format(school) for school in school_selection])),
48
  'fields[]': 'policy_text', # Replace with the name of your field
49
  }
50
 
51
+ #print(params)
52
 
53
  try:
54
  # Send a GET request to the Airtable API
 
78
  except Exception as e:
79
  print(f"An error occurred: {str(e)}")
80
 
81
+ #print(concatenated_policies)
82
 
83
  return concatenated_policies
84