Skip to content

Commit

Permalink
fix issue with app_abfallplus_de for some apps/addresses (#1326)
Browse files Browse the repository at this point in the history
Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
  • Loading branch information
5ila5 and 5ila5 authored Oct 15, 2023
1 parent 5e7eda0 commit 088efa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def extract_onclicks(
onclick: str = a.attrs["onclick"].replace("('#f_ueberspringen').val('0')", "")
start = onclick.find("(") + 1
end = onclick.find("})") + 1
string = ("[" + onclick[start:end] + "]").replace("'", '"')
string = ("[" + onclick[start:end] + "]").replace('"', '\\"').replace("'", '"')
try:
to_return.append(json.loads(string))
except json.decoder.JSONDecodeError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
"strasse": "Alle Straßen",
"city": "Bergen",
},
"de.k4systems.abfallappcux Wurster Nordseeküste Aakweg Alle Hausnummern": {
"app_id": "de.k4systems.abfallappcux",
"strasse": "Aakweg",
"hnr": "Alle Hausnummern",
"city": "Wurster Nordseeküste",
},
# MORE TEST CASES UNCOMMENT IF NEEDED FOR DEBUGGING
# "de.k4systems.zakb Fürth Ahornweg 3 A": {
# "app_id": "de.k4systems.zakb",
Expand Down

0 comments on commit 088efa2

Please sign in to comment.