From 3457b923b226f758f9d104d3305caa519fc15990 Mon Sep 17 00:00:00 2001 From: melonhead Date: Fri, 5 Mar 2010 03:10:06 +0000 Subject: [PATCH] fixed urlhistory syntax error --- plugins/urlhistory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/urlhistory.py b/plugins/urlhistory.py index ea1831a..5c32b83 100644 --- a/plugins/urlhistory.py +++ b/plugins/urlhistory.py @@ -30,7 +30,7 @@ def insert_history(db, chan, url, nick): db.commit() -def get_history(db, chan, url, duration): +def get_history_duration(db, chan, url, duration): db.execute("delete from urlhistory where time < ?", (time.time() - duration,)) return db.execute("select nick, time from urlhistory where " @@ -38,11 +38,11 @@ def get_history(db, chan, url, duration): def get_history(db, chan, url): - return get_history(db, chan, url, expiration_period) + return get_history_duration(db, chan, url, expiration_period) def get_recent_links_count(db, chan, url): - return len(get_history(db, chan, url, rate_limit_period)) + return len(get_history_duration(db, chan, url, rate_limit_period)) def nicklist(nicks):