Skip to content
Snippets Groups Projects
Commit 883e63f0 authored by Luis Guzmán's avatar Luis Guzmán Committed by Ruben Rodriguez
Browse files

Fix new json structure for DDG @search.mozilla.org

parent 401b640c
No related branches found
No related tags found
No related merge requests found
...@@ -36,11 +36,11 @@ with open(sys.argv[1]) as f: ...@@ -36,11 +36,11 @@ with open(sys.argv[1]) as f:
item["appliesTo"][0]["default"]="no" item["appliesTo"][0]["default"]="no"
if item["webExtension"]["id"] == 'ddg@search.mozilla.org': if item["webExtension"]["id"] == 'ddg@search.mozilla.org':
item["appliesTo"][0]["default"]="yes" item["appliesTo"][0]["default"]="yes"
item["appliesTo"][1]["application"]["orderHint"]=5000 item["appliesTo"][0]["orderHint"]=5000
item["appliesTo"][1]["application"]["override"]=True item["appliesTo"][0]["override"]=True
del item["appliesTo"][1]["application"]["distributions"] # del item["appliesTo"][1]["application"]["distributions"]
del item["appliesTo"][1]["extraParams"] # del item["appliesTo"][1]["extraParams"]
del item["extraParams"] # del item["extraParams"]
newdata["data"].append(item) newdata["data"].append(item)
i+=1 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} 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}
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=78 VERSION=79
. ./config . ./config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment