API tweak

This commit is contained in:
dgtlmoon
2026-03-24 16:17:32 +01:00
parent 64aa0917bf
commit 0dfd348287
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -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)