Skip to content

Commit

Permalink
Removed Crasto, Santiago, Grelhados and ESTGA from query CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
andralves717 committed Sep 18, 2023
1 parent 8f167c3 commit 9ae016d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meals-ua.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def query_CMS(place, date):
for canteen in canteens:
# Get the caption of the table (the name of the canteen)
caption = canteen.find('caption').text.split(': ')[1]
print(caption)
if(caption in ['Crasto', 'Santiago', 'Grelhados', 'ESTGA']):
continue
# Get the meals of the canteen
meals = canteen.find_all('tr')

Expand Down Expand Up @@ -533,7 +536,7 @@ def main():
place = "Campus"

# Query and print UA API data for selected location and time period
# query_UA_API(place, date)
query_UA_API(place, date)
query_CMS(place, date)

# Query and print AFUAv data (only for UA's main campus and for the same day)
Expand Down

0 comments on commit 9ae016d

Please sign in to comment.