summaryrefslogtreecommitdiff
path: root/jfr_playoff/remote.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-01-05 17:21:47 +0100
committeremkael <emkael@tlen.pl>2020-01-05 17:21:47 +0100
commitf90884a97abf9e2dabdfe90cb3704c551fedfbc9 (patch)
tree60865b5a4fa396b7ca74a00cae7d35848b0d3812 /jfr_playoff/remote.py
parent856cf764545362dd43cd2f304bd73c4594e1e6e8 (diff)
Clearing remote content cache on each GUI run
Fixes #45
Diffstat (limited to 'jfr_playoff/remote.py')
-rw-r--r--jfr_playoff/remote.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jfr_playoff/remote.py b/jfr_playoff/remote.py
index 6fb7e36..74d75b5 100644
--- a/jfr_playoff/remote.py
+++ b/jfr_playoff/remote.py
@@ -29,3 +29,7 @@ class RemoteUrl:
@classmethod
def fetch(cls, url):
return bs(RemoteUrl.fetch_raw(url), 'lxml')
+
+ @classmethod
+ def clear_cache(cls):
+ cls.url_cache = {}