瀏覽代碼

Call copyvios.globalize() before requests.

pull/24/head
Ben Kurtovic 10 年之前
父節點
當前提交
8b0c0aa38f
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      app.fcgi

+ 2
- 0
app.fcgi 查看文件

@@ -8,6 +8,7 @@ from time import asctime
from traceback import format_exc

from earwigbot.bot import Bot
from earwigbot.wiki.copyvios import globalize
from flask import Flask, g, request
from flask.ext.mako import MakoTemplates, render_template, TemplateError
from flup.server.fcgi import WSGIServer
@@ -40,6 +41,7 @@ def catch_errors(func):

@app.before_request
def prepare_request():
globalize()
g.bot = bot
g.globals_db = g.cache_db = None
g.cookies = parse_cookies(request.script_root,


Loading…
取消
儲存