瀏覽代碼

Fix index.

master
Ben Kurtovic 8 年之前
父節點
當前提交
62b2099163
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      tif/calc.py

+ 1
- 1
tif/calc.py 查看文件

@@ -70,7 +70,7 @@ def _get_avg_views(site, article):
def _update_views(cursor, site, title, ns):
cache_life = "7 DAY"
query1 = """DELETE FROM cache
WHERE cache_time < DATE_SUB(NOW(), INTERVAL {1})"""
WHERE cache_time < DATE_SUB(NOW(), INTERVAL {0})"""
query2 = """SELECT tl_from, page_title
FROM {0}.templatelinks
LEFT JOIN {0}.page ON tl_from = page_id


Loading…
取消
儲存