Fix qutescheme timestamp error.

A date object doesn't have a timestamp property. Go back to using
mktime.
This commit is contained in:
Ryan Roden-Corrent 2017-07-20 22:07:37 -04:00
parent 0eb347186c
commit 1175543ce1

View File

@ -251,7 +251,7 @@ def qute_history(url):
prev_date = curr_date - one_day prev_date = curr_date - one_day
# start_time is the last second of curr_date # start_time is the last second of curr_date
start_time = next_date.timestamp() - 1 start_time = time.mktime(next_date.timetuple()) - 1
history = [ history = [
(i["url"], i["title"], (i["url"], i["title"],
datetime.datetime.fromtimestamp(i["time"]), datetime.datetime.fromtimestamp(i["time"]),