Ability for watch to use a more obvious system default fetcher (#1320)

This commit is contained in:
dgtlmoon
2023-01-19 21:20:58 +01:00
parent 7c5e2d00af
commit fba719ab8d
4 changed files with 18 additions and 13 deletions

View File

@@ -92,9 +92,8 @@ class perform_site_check():
# Pluggable content fetcher
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 not prefer_backend or prefer_backend == 'system':
prefer_backend = self.datastore.data['settings']['application']['fetch_backend']
if hasattr(content_fetcher, prefer_backend):
klass = getattr(content_fetcher, prefer_backend)