瀏覽代碼

Whoops, no context gets passed.

pull/24/head
Ben Kurtovic 10 年之前
父節點
當前提交
ed5af0eaf8
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. +1
    -1
      copyvios/background.py
  2. +1
    -1
      copyvios/settings.py

+ 1
- 1
copyvios/background.py 查看文件

@@ -11,7 +11,7 @@ from flask import g

from .misc import get_bot, open_sql_connection

def set_background(context, selected):
def set_background(selected):
conn = open_sql_connection(get_bot(), "globals")
if "CopyviosScreenCache" in g.cookies:
cache = g.cookies["CopyviosScreenCache"].value


+ 1
- 1
copyvios/settings.py 查看文件

@@ -7,7 +7,7 @@ from .cookies import set_cookie, delete_cookie
from .misc import get_bot, Query
from .sites import get_sites

def main(context):
def main():
query = Query(method="POST")
if query.action == "set":
status = _do_set(query)


Loading…
取消
儲存