1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-19 15:20:10 +02:00

sort antiFeatures list in index-v1.json

This commit is contained in:
Michael Pöhn 2017-08-16 05:46:32 +02:00
parent b6b79edf11
commit dfc6261ccb

View File

@ -163,7 +163,7 @@ def make_v1(apps, packages, repodir, repodict, requestsdict, fdroid_signing_key_
def _index_encoder_default(obj):
if isinstance(obj, set):
return list(obj)
return sorted(list(obj))
if isinstance(obj, datetime):
return int(obj.timestamp() * 1000) # Java expects milliseconds
raise TypeError(repr(obj) + " is not JSON serializable")