From 0dbc82a76f15d921d17a732ff1b80beba91824f9 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 5 Mar 2024 02:06:23 +0300 Subject: [PATCH] dev@locazia: fix content filter --- app/api/routes/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routes/content.py b/app/api/routes/content.py index 8a71aec..b53c37b 100644 --- a/app/api/routes/content.py +++ b/app/api/routes/content.py @@ -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: