瀏覽代碼

Forgot to pass the silly context thing.

pull/24/head
Ben Kurtovic 12 年之前
父節點
當前提交
dc96cf1a2e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      toolserver/background.py

+ 2
- 2
toolserver/background.py 查看文件

@@ -12,7 +12,7 @@ from .misc import get_bot, open_sql_connection

_descurl = None

def set_background(cookies, selected):
def set_background(context, cookies, selected):
global _descurl
conn = open_sql_connection(get_bot(), "globals")
if "EarwigScreenCache" in cookies:
@@ -35,7 +35,7 @@ def set_background(cookies, selected):
_descurl = descurl
return bg_url

def get_desc_url():
def get_desc_url(context):
return _descurl

def _update_url(conn, service, bg_id, callback):


Loading…
取消
儲存