update: fix bug where only last appid was added to antiFeatures status

appid will never be present in `antiFeatures[af]`, so the entry was being
reinitalized each time.
This commit is contained in:
Hans-Christoph Steiner 2020-10-07 18:40:03 +02:00
parent 05cd8c6810
commit 602cf30c1e

View file

@ -149,7 +149,7 @@ def status_update_json(apps, apks):
antiFeatures = output['antiFeatures'] # JSON camelCase antiFeatures = output['antiFeatures'] # JSON camelCase
if af not in antiFeatures: if af not in antiFeatures:
antiFeatures[af] = dict() antiFeatures[af] = dict()
if appid not in antiFeatures[af]: if 'apps' not in antiFeatures[af]:
antiFeatures[af]['apps'] = set() antiFeatures[af]['apps'] = set()
antiFeatures[af]['apps'].add(appid) antiFeatures[af]['apps'].add(appid)