mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-08-25 07:37:14 +00:00
API tweak
This commit is contained in:
@@ -105,6 +105,9 @@ class Watch(Resource):
|
||||
watch['viewed'] = watch_obj.viewed
|
||||
watch['link'] = watch_obj.link,
|
||||
|
||||
# fetch_backend is a legacy field superseded by browser_profile — omit from API response
|
||||
watch.pop('fetch_backend', None)
|
||||
|
||||
return watch
|
||||
|
||||
@auth.check_token
|
||||
|
||||
@@ -211,6 +211,6 @@ def test_import_watchete_xlsx(client, live_server, measure_memory_usage, datasto
|
||||
assert watch.get('browser_profile') == 'browser_chromeplaywright' # Has active 'dynamic wachet'
|
||||
|
||||
if watch.get('title') == 'system default website':
|
||||
assert watch.get('browser_profile') is None # uses default if blank (importer doesn't set it)
|
||||
assert watch.get('browser_profile') == 'system' # uses default if blank (importer doesn't set it)
|
||||
|
||||
delete_all_watches(client)
|
||||
|
||||
Reference in New Issue
Block a user