diff --git a/app.fcgi b/app.fcgi index 8980814..fbd6937 100755 --- a/app.fcgi +++ b/app.fcgi @@ -45,7 +45,7 @@ def catch_errors(func): @app.before_first_request def setup_app(): cache.bot = Bot(".earwigbot", 100) - cache.langs, cache.projects = set(), set() + cache.langs, cache.projects = [], [] cache.last_sites_update = 0 cache.background_data = {} cache.last_background_updates = {} diff --git a/copyvios/sites.py b/copyvios/sites.py index abbee1f..aab428a 100644 --- a/copyvios/sites.py +++ b/copyvios/sites.py @@ -65,4 +65,4 @@ def _load_sites(): code = site["code"] langs.add((code, u"{0} ({1})".format(code, site["name"]))) projects |= this - return langs, projects + return list(sorted(langs)), list(sorted(projects))