From a14257a31c02ccbe4ba73840f62c7ff10ebdf087 Mon Sep 17 00:00:00 2001 From: azivner Date: Sat, 23 Sep 2017 10:18:08 -0400 Subject: [PATCH] basic functionality of history now working --- src/notes_api.py | 2 +- src/templates/app.html | 7 +++++-- static/js/init.js | 16 ++++++++-------- static/js/note_history.js | 28 ++++++++++++++++++++++------ 4 files changed, 36 insertions(+), 17 deletions(-) diff --git a/src/notes_api.py b/src/notes_api.py index 8cec03f13..1e80eef58 100644 --- a/src/notes_api.py +++ b/src/notes_api.py @@ -44,7 +44,7 @@ def updateNote(note_id): now = math.floor(time.time()) - history_cutoff = now - 3600 + history_cutoff = now - 600 history = getSingleResult("select id from notes_history where note_id = ? and date_modified >= ?", [note_id, history_cutoff]) diff --git a/src/templates/app.html b/src/templates/app.html index d5d5100af..83aa89f31 100644 --- a/src/templates/app.html +++ b/src/templates/app.html @@ -173,10 +173,13 @@