|
@@ -49,7 +49,6 @@ def setup_app(): |
|
|
cache.last_background_updates = {} |
|
|
cache.last_background_updates = {} |
|
|
|
|
|
|
|
|
getLogger("earwigbot.wiki.cvworker").setLevel(INFO) |
|
|
getLogger("earwigbot.wiki.cvworker").setLevel(INFO) |
|
|
# getLogger().handlers .... |
|
|
|
|
|
globalize() |
|
|
globalize() |
|
|
|
|
|
|
|
|
@app.before_request |
|
|
@app.before_request |
|
@@ -107,6 +106,7 @@ def api_json(): |
|
|
|
|
|
|
|
|
format = request.args.get("format", "json") |
|
|
format = request.args.get("format", "json") |
|
|
if format in ["json", "jsonfm"]: |
|
|
if format in ["json", "jsonfm"]: |
|
|
|
|
|
update_sites() |
|
|
try: |
|
|
try: |
|
|
result = handle_api_request() |
|
|
result = handle_api_request() |
|
|
except Exception as exc: |
|
|
except Exception as exc: |
|
|