fixed dumb logic
This commit is contained in:
parent
30123fdb43
commit
57a7091de2
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user