Explorar el Código

Fix bug when page contains unicode.

pull/8/merge
Ben Kurtovic hace 12 años
padre
commit
7970fab9f6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      tasks/afc_copyvios.py

+ 1
- 1
tasks/afc_copyvios.py Ver fichero

@@ -154,7 +154,7 @@ class AFCCopyvios(Task):
config, which is ``False`` by default.
"""
pageid = page.pageid
hash = sha256(page.get()).hexdigest()
hash = sha256(page.get().encode("utf8")).hexdigest()
query1 = "SELECT 1 FROM cache WHERE cache_id = ?"
query2 = "DELETE FROM cache WHERE cache_id = ?"
query3 = "INSERT INTO cache VALUES (?, ?, ?, CURRENT_TIMESTAMP, ?, ?)"


Cargando…
Cancelar
Guardar