浏览代码

Make cache.langs, cache.projects sorted lists.

pull/24/head
Ben Kurtovic 10 年前
父节点
当前提交
f2c1d5b853
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      app.fcgi
  2. +1
    -1
      copyvios/sites.py

+ 1
- 1
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 = {}


+ 1
- 1
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))

正在加载...
取消
保存