mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
normalize Build TYPE_STRING data based on .txt
Unfortunately, things like versionCode must be strings. That should be converted to be ints throughout.
This commit is contained in:
parent
c178cfb843
commit
593613043e
2 changed files with 68 additions and 66 deletions
|
|
@ -827,6 +827,8 @@ def post_metadata_parse(app):
|
|||
build[k] = ['yes']
|
||||
else:
|
||||
build[k] = []
|
||||
elif flagtype(k) == TYPE_STRING and type(v) in (float, int):
|
||||
build[k] = str(v)
|
||||
builds.append(build)
|
||||
|
||||
if not app.get('Description'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue