commit 587562cf0760498983cd3e3c36b6a5e2e873238b
parent 828ed15b13ce8aa5a1982d141e18249cd8469883
Author: parazyd <parazyd@dyne.org>
Date: Tue, 22 Jan 2019 15:36:03 +0100
List only visible stories in recent.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils.py b/utils.py
@@ -94,7 +94,7 @@ def get_recent_stories():
"""
Returns a list of the 3 most recent stories in the database.
"""
- rows = sql_select_col('*')
+ rows = sql_select_col_where('*', 'visible', 1)
if len(rows) > 3:
rows = rows[-3:]