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

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

        print(
            f"Latest submitted date: {latest_submitted_date}. Getting data until date: {today}"
        )
        for i in range(int((today - latest_submitted_date).days)):
            date = latest_submitted_date + datetime.timedelta(i + 1)
            self.parse_data(date.strftime("%Y-%m-%d"))

        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):
        latest_submitted_date = self.metadata_helper.get_latest_submitted_date_idph()
        today = datetime.date.today()
        if latest_submitted_date == today:
            print("Nothing to submit: today and latest submitted date are the same.")
            return
        print(
            f"Latest submitted date: {latest_submitted_date}. Getting data until date: {today}"
        )
        for i in range(int((today - latest_submitted_date).days)):
            date = latest_submitted_date + datetime.timedelta(i + 1)
            self.parse_data(date.strftime("%Y-%m-%d"))
def files_to_submissions ( self ) : latest_submitted_date = self . metadata_helper . get_latest_submitted_date_idph ( ) today = datetime . date . today ( ) if latest_submitted_date == today : print ( "Nothing to submit: today and latest submitted date are the same." ) return print ( f"Latest submitted date: {latest_submitted_date}. Getting data until date: {today}" ) for i in range ( int ( ( today - latest_submitted_date ) . days ) ) : date = latest_submitted_date + datetime . timedelta ( i + 1 ) self . parse_data ( date . strftime ( "%Y-%m-%d" ) )
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