dev@locazia: fix content filter
This commit is contained in:
parent
9e60503262
commit
0dbc82a76f
|
|
@ -10,7 +10,7 @@ async def s_api_v1_content_list(request):
|
|||
assert 0 < limit <= 1000, "Invalid limit"
|
||||
|
||||
content_list = request.ctx.db_session.query(StoredContent).filter(
|
||||
StoredContent.type == "local/bin"
|
||||
'content' in StoredContent.type
|
||||
).order_by(StoredContent.created.desc()).offset(offset).limit(limit).all()
|
||||
result = {}
|
||||
for content in content_list:
|
||||
|
|
|
|||
Loading…
Reference in New Issue