From 883e63f065284e2298b8e6adc9a0eee57210f4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org> Date: Fri, 14 May 2021 17:29:17 +0000 Subject: [PATCH] Fix new json structure for DDG @search.mozilla.org --- helpers/DATA/firefox/reprocess-search-config.py | 10 +++++----- helpers/make-firefox | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/helpers/DATA/firefox/reprocess-search-config.py b/helpers/DATA/firefox/reprocess-search-config.py index 30d56ad2c..4478cbb0e 100644 --- a/helpers/DATA/firefox/reprocess-search-config.py +++ b/helpers/DATA/firefox/reprocess-search-config.py @@ -36,11 +36,11 @@ with open(sys.argv[1]) as f: item["appliesTo"][0]["default"]="no" if item["webExtension"]["id"] == 'ddg@search.mozilla.org': item["appliesTo"][0]["default"]="yes" - item["appliesTo"][1]["application"]["orderHint"]=5000 - item["appliesTo"][1]["application"]["override"]=True - del item["appliesTo"][1]["application"]["distributions"] - del item["appliesTo"][1]["extraParams"] - del item["extraParams"] + item["appliesTo"][0]["orderHint"]=5000 + item["appliesTo"][0]["override"]=True +# del item["appliesTo"][1]["application"]["distributions"] +# del item["appliesTo"][1]["extraParams"] +# del item["extraParams"] newdata["data"].append(item) i+=1 trisquel={u'webExtension': {u'id': u'trisquel@search.mozilla.org'}, u'appliesTo': [{u'included': {u'everywhere': True}, 'default': 'no'}, {u'override': True, u'application': {'override': True, 'orderHint': 4000}}], u'id': u'4341e834-7290-4d33-beb0-377c04a49566', u'last_modified': 1595254832054, u'telemetryId': u'trisquel', u'schema': 1594312388241} diff --git a/helpers/make-firefox b/helpers/make-firefox index d1669b2cf..3aa368628 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -18,7 +18,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=78 +VERSION=79 . ./config -- GitLab