mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 17:31:07 +03:00
update: remove 'SET' debug antifeature, closes #565
oops, this slipped in in 3011953d0e
Bump the metadata version to purge the cache
This commit is contained in:
parent
92c4f048de
commit
4c4da3d176
3 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ from PIL import Image, PngImagePlugin
|
|||
warnings.simplefilter('error', Image.DecompressionBombWarning)
|
||||
Image.MAX_IMAGE_PIXELS = 0xffffff # 4096x4096
|
||||
|
||||
METADATA_VERSION = 20
|
||||
METADATA_VERSION = 21
|
||||
|
||||
# less than the valid range of versionCode, i.e. Java's Integer.MIN_VALUE
|
||||
UNSET_VERSION_CODE = -0x100000000
|
||||
|
@ -488,7 +488,7 @@ def write_cache(apkcache):
|
|||
class Encoder(json.JSONEncoder):
|
||||
def default(self, obj):
|
||||
if isinstance(obj, set):
|
||||
return ['SET'] + list(obj)
|
||||
return list(obj)
|
||||
elif isinstance(obj, datetime):
|
||||
return obj.timestamp()
|
||||
return super().default(obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue