瀏覽代碼

Store update_time as an int, not a float.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
e71e9daadb
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      earwigbot/wiki/copyvios/exclusions.py

+ 2
- 2
earwigbot/wiki/copyvios/exclusions.py 查看文件

@@ -117,9 +117,9 @@ class ExclusionsDB(object):
conn.execute(query3, (sitename, url))
conn.executemany(query4, [(sitename, url) for url in urls])
if conn.execute(query5, (sitename,)).fetchone():
conn.execute(query6, (time(), sitename))
conn.execute(query6, (int(time()), sitename))
else:
conn.execute(query7, (sitename, time()))
conn.execute(query7, (sitename, int(time())))

def _get_last_update(self, sitename):
"""Return the UNIX timestamp of the last time the db was updated."""


Loading…
取消
儲存