fixed dumb logic

This commit is contained in:
Jarian Cottingham 2025-10-14 18:01:51 -05:00
parent 30123fdb43
commit 57a7091de2

View File

@ -35,7 +35,7 @@ def get_initial_posts():
posts = archive_parser.get_posts(count=10, start_index=0)
filters_posts = []
for p in posts:
if p["title"] is None:
if p["title"] is not None:
filters_posts += [p]
return jsonify(filters_posts)
except Exception as e:
@ -54,7 +54,7 @@ def get_more_posts():
posts = archive_parser.get_posts(count=10, start_index=count)
filters_posts = []
for p in posts:
if p["title"] is None:
if p["title"] is not None:
filters_posts += [p]
return jsonify(filters_posts)
except Exception as e: