瀏覽代碼

Add mode to cache data per new schema.

pull/15/head
Ben Kurtovic 10 年之前
父節點
當前提交
fe5ed6c7b0
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      tasks/afc_copyvios.py

+ 2
- 1
tasks/afc_copyvios.py 查看文件

@@ -207,7 +207,8 @@ class AFCCopyvios(Task):
ON DUPLICATE KEY UPDATE
cache_url = ?, cache_time = CURRENT_TIMESTAMP,
cache_queries = ?, cache_process_time = 0"""
shahash = sha256(page.get().encode("utf8")).hexdigest()
mode = "1:1:"
shahash = sha256(mode + page.get().encode("utf8")).hexdigest()
args = (page.pageid, shahash, result.url, result.queries, result.url,
result.queries)
with self.conn.cursor() as cursor:


Loading…
取消
儲存