Explorar el Código

Make cache.langs, cache.projects sorted lists.

pull/24/head
Ben Kurtovic hace 10 años
padre
commit
f2c1d5b853
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      app.fcgi
  2. +1
    -1
      copyvios/sites.py

+ 1
- 1
app.fcgi Ver fichero

@@ -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 Ver fichero

@@ -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))

Cargando…
Cancelar
Guardar