Browse Source

- fix for cache key clash

master
Quildra 1 year ago
parent
commit
01d101b7ad
  1. 6
      ui/workers/gather_encounter_locations.py

6
ui/workers/gather_encounter_locations.py

@ -153,7 +153,7 @@ class GatherEncountersWorker(QRunnable):
if not page_data:
return None
cache_key = f'locations_{url}_data'
cache_key = f'locations_{url}_data_{form}'
if force_refresh:
cache.purge(cache_key)
@ -325,11 +325,11 @@ class GatherEncountersWorker(QRunnable):
form_text = form_text.strip('()')
if "/" in form_text:
last_word = singularize(form_text.split()[-1])
last_word = form_text.split()[-1]
form_text = form_text.replace(last_word, "").strip()
parts = form_text.split('/')
for part in parts:
main_form = part.strip() + " " + last_word
main_form = part.strip() + " " + singularize(last_word)
info = {
"main_form": main_form,
"sub_form": None

Loading…
Cancel
Save