Skip to content

Commit

Permalink
Fixed cache matches sorting (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
berrysauce committed Sep 5, 2023
1 parent c7fd4b4 commit 9332d99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def get_scan(url: str, includeCategories: Optional[bool] = False):
try:
cache_data = cache_db.get(key=url)
if cache_data != None:
# move "other" to the end of the dict
cache_data["matches"]["other"] = cache_data["matches"].pop("other")
return cache_data
except Exception:
# Deta hasn't defined a specific exception for this error
Expand Down

0 comments on commit 9332d99

Please sign in to comment.