mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Several silly errors in previous commit
This commit is contained in:
parent
19e999ff0d
commit
c7ebe5cbae
1 changed files with 4 additions and 3 deletions
|
|
@ -212,8 +212,8 @@ def main():
|
||||||
# Generate a list of categories...
|
# Generate a list of categories...
|
||||||
categories = []
|
categories = []
|
||||||
for app in apps:
|
for app in apps:
|
||||||
cats = app['Category'].Split(';')
|
cats = app['Category'].split(';')
|
||||||
for cat in cats
|
for cat in cats:
|
||||||
if cat not in categories:
|
if cat not in categories:
|
||||||
categories.append(cat)
|
categories.append(cat)
|
||||||
|
|
||||||
|
|
@ -511,7 +511,8 @@ def main():
|
||||||
# We put the first (primary) category in LAST, which will have
|
# We put the first (primary) category in LAST, which will have
|
||||||
# the desired effect of making clients that only understand one
|
# the desired effect of making clients that only understand one
|
||||||
# category see that one.
|
# category see that one.
|
||||||
cats = app['Category'].split(';').reverse()
|
cats = app['Category'].split(';')
|
||||||
|
cats.reverse()
|
||||||
for cat in cats:
|
for cat in cats:
|
||||||
addElement('category', cat, doc, apel)
|
addElement('category', cat, doc, apel)
|
||||||
addElement('web', app['Web Site'], doc, apel)
|
addElement('web', app['Web Site'], doc, apel)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue