diverse fixes und mysql

This commit is contained in:
uwsgi
2017-02-15 10:32:45 +01:00
parent 49ac42b9a5
commit bdfa16728d
11 changed files with 75 additions and 20 deletions

View File

@@ -23,6 +23,9 @@ def index():
if v.has_key("section_id"):
articles=controller.get_section_page(int(v["section_id"]),pp,o)
c=controller.section_count(int(v["section_id"]))
elif v.has_key("organization_id"):
articles=controller.get_organization_page(int(v["organization_id"]), pp,o)
c=controller.organization_count(int(v["organization_id"]))
else:
articles=controller.get_all_page(pp,o)
c=controller.count()