Browse Source

Whoops, no context gets passed.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
ed5af0eaf8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      copyvios/background.py
  2. +1
    -1
      copyvios/settings.py

+ 1
- 1
copyvios/background.py View File

@@ -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 View File

@@ -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…
Cancel
Save