From dc96cf1a2e0082027078683c818e3a88af2b2eb3 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 3 Aug 2012 03:15:26 -0400 Subject: [PATCH] Forgot to pass the silly context thing. --- toolserver/background.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolserver/background.py b/toolserver/background.py index 6f950eb..bca7de4 100644 --- a/toolserver/background.py +++ b/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):