Skip to content

Commit

Permalink
Fix hospital_report
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitor Magán committed Mar 12, 2022
1 parent c29d041 commit c6a1cac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main_daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def subtract_days_ignoring_weekends(initial_date, days_to_substract):

def update_database(today):
pcrs_report = SpainCovid19MinistryReport(today, 1)
hospital_report = SpainCovid19MinistryReport(today, 4, (179, 77, 179+280, 77+707))
try:
hospital_report = SpainCovid19MinistryReport(today, 4)
except:
hospital_report = SpainCovid19MinistryReport(today, 4, (179, 77, 179+280, 77+707))

try:
accumulated_pcrs_today = pcrs_report.get_column_data(1)
Expand Down

0 comments on commit c6a1cac

Please sign in to comment.