kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Reliability fix - Remove loop that could cause app to stop checking if data changes (#1313)
rodzic
024c8d8fd5
commit
de15dfd80d
|
@ -92,6 +92,10 @@ class perform_site_check():
|
||||||
|
|
||||||
# Pluggable content fetcher
|
# Pluggable content fetcher
|
||||||
prefer_backend = watch.get_fetch_backend
|
prefer_backend = watch.get_fetch_backend
|
||||||
|
# @todo move this to Watch model get_fetch_backend
|
||||||
|
if not prefer_backend:
|
||||||
|
prefer_backend = self.datastore.data['settings']['application']['fetch_backend']
|
||||||
|
|
||||||
if hasattr(content_fetcher, prefer_backend):
|
if hasattr(content_fetcher, prefer_backend):
|
||||||
klass = getattr(content_fetcher, prefer_backend)
|
klass = getattr(content_fetcher, prefer_backend)
|
||||||
else:
|
else:
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 43 KiB Po Szerokość: | Wysokość: | Rozmiar: 22 KiB |
|
@ -171,14 +171,6 @@ class ChangeDetectionStore:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def data(self):
|
def data(self):
|
||||||
has_unviewed = False
|
|
||||||
for uuid, watch in self.__data['watching'].items():
|
|
||||||
# #106 - Be sure this is None on empty string, False, None, etc
|
|
||||||
# Default var for fetch_backend
|
|
||||||
# @todo this may not be needed anymore, or could be easily removed
|
|
||||||
if not self.__data['watching'][uuid]['fetch_backend']:
|
|
||||||
self.__data['watching'][uuid]['fetch_backend'] = self.__data['settings']['application']['fetch_backend']
|
|
||||||
|
|
||||||
# Re #152, Return env base_url if not overriden, @todo also prefer the proxy pass url
|
# Re #152, Return env base_url if not overriden, @todo also prefer the proxy pass url
|
||||||
env_base_url = os.getenv('BASE_URL','')
|
env_base_url = os.getenv('BASE_URL','')
|
||||||
if not self.__data['settings']['application']['base_url']:
|
if not self.__data['settings']['application']['base_url']:
|
||||||
|
|
Ładowanie…
Reference in New Issue