Skip to content

Commit

Permalink
Fixed continent locinfo response + minor fix in scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed May 7, 2019
1 parent 7856b8e commit 1f19624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion routes/loc.py
Expand Up @@ -260,7 +260,7 @@ def locinfo():
resp["map"] = STATIC_MAP_URL.format(lat, lon, z)
elif name in ICE_REGIONS:
resp["map"] = "/static/img/maps/regions/" + name + ".png"
elif resp["continent"] and name in ISO_TO_CONTINENT.values():
elif resp["continent"] and resp["continent"] in ISO_TO_CONTINENT:
resp["map"] = (
"/static/img/maps/continents/" + resp["continent"] + ".png"
)
Expand Down
1 change: 1 addition & 0 deletions scrapers/default.py
Expand Up @@ -1585,6 +1585,7 @@ def _get_content(self, soup_body):
for t in content.find_all("style"):
t.decompose()
ScrapeHelper.del_div_class(content, "efnisordin")
ScrapeHelper.del_div_class(content, "ibodi")
if content.figure:
content.figure.decompose()
for fc in content.find_all("figcaption"):
Expand Down

0 comments on commit 1f19624

Please sign in to comment.