Excluded disabled metadata in failedBuilds

This commit is contained in:
Jochen Sprickerhof 2021-04-05 16:24:16 +02:00 committed by Hans-Christoph Steiner
parent 1b7f9d86b6
commit 49a593ac5f

View file

@ -166,6 +166,9 @@ def status_update_json(apps, apks):
gotcurrentver = True
apklist.append(apk)
validapks = 0
if app.get('Disabled'):
output['disabled'].append(appid)
else:
for build in app.get('Builds', []):
if not build.get('disable'):
builtit = False
@ -181,8 +184,6 @@ def status_update_json(apps, apks):
failedBuilds[appid].append(build.versionCode)
if validapks == 0:
output['noPackages'].append(appid)
if app.get('Disabled'):
output['disabled'].append(appid)
if not gotcurrentver:
output['needsUpdate'].append(appid)
if app.get('UpdateCheckMode') == 'None' and not app.get('Disabled'):