covid19-etl/etl/idph_regional_icu_capacity.py
def files_to_submissions(self):
        """
        Reads JSON file and convert the data to Sheepdog records
        """

        today = datetime.date.today()
        latest_submitted_date = self.metadata_helper.get_latest_submitted_date_idph()
        if latest_submitted_date == today:
            print("Nothing to submit: today and latest submitted date are the same.")
            return
        today_str = today.strftime("%Y%m%d")

        print(f"Getting data for date: {today_str}")
        url = "https://idph.illinois.gov/DPHPublicInformation/api/COVIDExport/GetHospitalizationResultsRegion"
        self.parse_file(latest_submitted_date, url)

        Reads JSON file and convert the data to Sheepdog records
        
Reads JSON file and convert the data to Sheepdog records
Reads JSON file and convert the data to Sheepdog records
def files_to_submissions(self):
        today = datetime.date.today()
        latest_submitted_date = self.metadata_helper.get_latest_submitted_date_idph()
        if latest_submitted_date == today:
            print("Nothing to submit: today and latest submitted date are the same.")
            return
        today_str = today.strftime("%Y%m%d")
        print(f"Getting data for date: {today_str}")
        url = "https://idph.illinois.gov/DPHPublicInformation/api/COVIDExport/GetHospitalizationResultsRegion"
        self.parse_file(latest_submitted_date, url)
def files_to_submissions ( self ) : today = datetime . date . today ( ) latest_submitted_date = self . metadata_helper . get_latest_submitted_date_idph ( ) if latest_submitted_date == today : print ( "Nothing to submit: today and latest submitted date are the same." ) return today_str = today . strftime ( "%Y%m%d" ) print ( f"Getting data for date: {today_str}" ) url = "https://idph.illinois.gov/DPHPublicInformation/api/COVIDExport/GetHospitalizationResultsRegion" self . parse_file ( latest_submitted_date , url )
Reads JSON file and convert the data to Sheepdog records
Reads JSON file and convert the data to Sheepdog records
"""
        Reads JSON file and convert the data to Sheepdog records
        """
self