1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

unset Categories should be empty by default, not ['None']

This is an ancient, bizarre vestige.  This makes the TYPE_LIST fields
behave the same, e.g. AntiFeatures and Categories.
This commit is contained in:
Hans-Christoph Steiner 2018-10-09 23:39:09 +02:00
parent 85993eb2f8
commit 6e6afeec65

View File

@ -156,7 +156,7 @@ class App(dict):
self.Disabled = None
self.AntiFeatures = []
self.Provides = None
self.Categories = ['None']
self.Categories = []
self.License = 'Unknown'
self.AuthorName = None
self.AuthorEmail = None
@ -903,8 +903,6 @@ def post_metadata_parse(app):
if isinstance(app.Categories, str):
app.Categories = [app.Categories]
elif app.Categories is None:
app.Categories = ['None']
else:
app.Categories = [str(i) for i in app.Categories]