mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Simplify check_metadata
This commit is contained in:
parent
9a70575feb
commit
33ed7f077d
1 changed files with 2 additions and 4 deletions
|
|
@ -218,12 +218,10 @@ valuetypes = {
|
|||
def check_metadata(info):
|
||||
for v in valuetypes:
|
||||
for field in v.fields:
|
||||
if field in info:
|
||||
v.check(info[field], info['id'])
|
||||
v.check(info[field], info['id'])
|
||||
for build in info['builds']:
|
||||
for attr in v.attrs:
|
||||
if build[attr]:
|
||||
v.check(build[attr], info['id'])
|
||||
v.check(build[attr], info['id'])
|
||||
|
||||
|
||||
# Formatter for descriptions. Create an instance, and call parseline() with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue