소스 검색

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.execute(query3, (sitename, url))
conn.executemany(query4, [(sitename, url) for url in urls]) conn.executemany(query4, [(sitename, url) for url in urls])
if conn.execute(query5, (sitename,)).fetchone(): if conn.execute(query5, (sitename,)).fetchone():
conn.execute(query6, (time(), sitename))
conn.execute(query6, (int(time()), sitename))
else: else:
conn.execute(query7, (sitename, time()))
conn.execute(query7, (sitename, int(time())))


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


불러오는 중...
취소
저장