Skip to content

Commit

Permalink
feat(dev): gastrotourism bugfix (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugena committed Jun 15, 2024
1 parent ea7b0fa commit a6a8e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acesta/stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def get_strong_types(stats: list) -> list:
"""
q75 = np.quantile([s["cnt"] for s in stats], 0.75) if len(stats) else 0
return [
stat["title"].replace("туризм", "").lower().strip("- ")
stat.get("title").replace("туризм", "").lower().strip("- ")
for stat in stats
if stat["cnt"] >= q75
if stat.get("cnt") >= q75 and stat.get("title") is not None
]

def get_weak_types(stats: list) -> list:
Expand Down

0 comments on commit a6a8e32

Please sign in to comment.