From b8def5e2ae055c8b3f5ed8281c9042322f5071cd Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi
Date: Sun, 29 Jul 2018 23:30:49 +0200
Subject: [PATCH] small fixes
---
static/nryg.less | 2 +-
templates/components/diarioentry.html | 2 +-
webserver.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/static/nryg.less b/static/nryg.less
index bad6fda2..9471d993 100644
--- a/static/nryg.less
+++ b/static/nryg.less
@@ -2,7 +2,7 @@
@text-color: #a0ccff;
@quote-color: #a0ffcc;
@spoiler-color: #ffa0cc;
-@highlight-color: #ffcca0;
+@highlight-color: #ffff95;
@accent-color: white;
@link-color: #00aaff;
@visited-color: #aa66ff;
diff --git a/templates/components/diarioentry.html b/templates/components/diarioentry.html
index 41ecca6a..26d02dd1 100644
--- a/templates/components/diarioentry.html
+++ b/templates/components/diarioentry.html
@@ -8,6 +8,6 @@
\ No newline at end of file
diff --git a/webserver.py b/webserver.py
index cb100f34..e44ed415 100644
--- a/webserver.py
+++ b/webserver.py
@@ -255,7 +255,7 @@ def page_wiki(key: str):
@app.route("/diario")
def page_diario():
db_session = db.Session()
- diario_entries = db_session.query(db.Diario).all()
+ diario_entries = db_session.query(db.Diario).order_by(db.Diario.timestamp.desc()).all()
db_session.close()
return render_template("diario.html", config=config, entries=diario_entries)