Skip to content

Commit

Permalink
fix umweltverbaende_at not working for moedling and maybe others
Browse files Browse the repository at this point in the history
  • Loading branch information
5ila5 committed Jan 16, 2025
1 parent f79dfe9 commit f44c1cb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ class E_I_TYPE(TypedDict):
"municipal": "Schwechat",
"calendar": ["R 2", "B 3", "A 5", "S 1", "G 1"],
},
"moedling, Brunn am Gebirge": {
"district": "moedling",
"municipal": "Brunn am Gebirge",
"calendar": ["RM 2 / BIO 2 / GS 2 / AP 2"],
}, # old version (as of 16.01.2025)
}


Expand Down Expand Up @@ -478,7 +483,7 @@ def get_icon(self, waste_text: str) -> str | None:
def append_entry(self, ent: list, txt: list):
ent.append(
Collection(
date=datetime.strptime(txt[1].strip(), "%d.%m.%Y").date(),
date=datetime.strptime(txt[1].strip().strip(",:"), "%d.%m.%Y").date(),
t=txt[2].strip(),
icon=self.get_icon(txt[2].strip()),
)
Expand Down

0 comments on commit f44c1cb

Please sign in to comment.