mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-30 02:01:41 -05:00
sort antiFeatures list in index-v1.json
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user