Pārlūkot izejas kodu

Fix; delete background cache when updating background setting.

pull/24/head
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
f5ff26879c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      toolserver/settings.py

+ 2
- 1
toolserver/settings.py Parādīt failu

@@ -36,9 +36,10 @@ def _do_set(query, headers, cookies):
key = "EarwigBackground" key = "EarwigBackground"
if key not in cookies or cookies[key].value != query.background: if key not in cookies or cookies[key].value != query.background:
set_cookie(headers, cookies, key, query.background, 365) set_cookie(headers, cookies, key, query.background, 365)
delete_cookie(headers, cookies, "EarwigBackgroundCache")
changes.add("background") changes.add("background")
if changes: if changes:
changes = ", ".format(sorted(list(changes)))
changes = ", ".join(sorted(list(changes)))
return "Updated {0}.".format(changes) return "Updated {0}.".format(changes)
return None return None




Notiek ielāde…
Atcelt
Saglabāt