Bladeren bron

Whoops, no context gets passed.

pull/24/head
Ben Kurtovic 10 jaren geleden
bovenliggende
commit
ed5af0eaf8
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      copyvios/background.py
  2. +1
    -1
      copyvios/settings.py

+ 1
- 1
copyvios/background.py Bestand weergeven

@@ -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 Bestand weergeven

@@ -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)


Laden…
Annuleren
Opslaan