mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 17:31:07 +03:00
update: treat target and min sdk version as int
This commit is contained in:
parent
64bab7a94c
commit
dd695c650e
5 changed files with 70 additions and 38 deletions
|
@ -1203,7 +1203,7 @@ def _sanitize_sdk_version(value):
|
|||
try:
|
||||
sdk_version = int(value)
|
||||
if sdk_version > 0:
|
||||
return str(sdk_version) # heinous, but this is still str in the codebase
|
||||
return sdk_version
|
||||
except (TypeError, ValueError):
|
||||
pass
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue