mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
use dict syntax for app instances to allow API usage with plain dicts
Since metadata files are now YAML, programs should be able to just read in the .yml files, then use them with fdroidserver methods without having to know about the App class. The App class just provides syntactic sugar by allowing dict keys to be accessed as attributes.
This commit is contained in:
parent
e93acf7964
commit
0b879f18e5
2 changed files with 9 additions and 9 deletions
|
|
@ -358,7 +358,7 @@ def make_v0(apps, apks, repodir, repodict, requestsdict, fdroid_signing_key_fing
|
|||
for appid, appdict in apps.items():
|
||||
app = metadata.App(appdict)
|
||||
|
||||
if app.Disabled is not None:
|
||||
if app.get('Disabled') is not None:
|
||||
continue
|
||||
|
||||
# Get a list of the apks for this app...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue