From 44b8b36547e462653fff765427b708aefc06a839 Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Tue, 10 Nov 2020 15:50:18 +1300 Subject: [PATCH] add data cast in query. --- apiserver/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/database.py b/apiserver/database.py index f6026a8..b835811 100644 --- a/apiserver/database.py +++ b/apiserver/database.py @@ -83,7 +83,7 @@ def get_stories(maxage=60*60*24*2): q = session.query(Reflist, Story.meta).\ join(Story).\ filter(Story.title != None).\ - filter(Story.meta['date'] > time).\ + filter(Story.meta['date'].as_integer() > time).\ order_by(Story.meta['date'].desc()) return [x[1] for x in q]