add data cast in query.

This commit is contained in:
Jason Schwarzenberger 2020-11-10 15:50:18 +13:00
parent 4f49684194
commit 44b8b36547

View File

@ -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]