Skip to content
Snippets Groups Projects
Commit a8c882ac authored by thomaswoehlke's avatar thomaswoehlke
Browse files

Refactoring: vaccination

parent 62a9cc3d
No related branches found
No related tags found
1 merge request!162Refactoring 2021 05 20 start
Subproject commit 0996f5d2122468fdcab368abd2175701b2307bbf
Subproject commit baa0a8808240950d310b051cde4ffb603c106ef7
......@@ -40,6 +40,16 @@ class BlueprintDateReportedFactory:
date_reported_import_str=my_date_rep,
my_datum=my_datum)
@classmethod
def __get_datetime_parts_for_ecdc(cls, my_datetime: str):
my_date_parts = my_datetime.split('/')
my_day = int(my_date_parts[0])
my_month = int(my_date_parts[1])
my_year = int(my_date_parts[2])
datum_parts = (my_year, my_month, my_day)
return datum_parts
@classmethod
def __get_datetime_parts(cls, my_datetime: str):
my_datetime_parts = my_datetime.split(" ")
......@@ -258,7 +268,9 @@ class BlueprintDateReportedFactory:
@classmethod
def create_new_object_for_ecdc(cls, my_date_rep: str):
o = cls.__create_new_object_factory_for_isoformat(my_date_rep)
(my_year, my_month, my_day) = cls.__get_datetime_parts_for_ecdc(my_date_rep)
my_datum = date(my_year, my_month, my_day)
o = cls.__create_new_object_factory(date_reported_import_str=my_date_rep, my_datum=my_datum)
return cls.__get_ecdc(o)
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment