add data cast in query.
This commit is contained in:
parent
4f49684194
commit
44b8b36547
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user