浏览代码

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


正在加载...
取消
保存