filtering on title instead of url
This commit is contained in:
parent
5178c34599
commit
30123fdb43
@ -35,7 +35,7 @@ def get_initial_posts():
|
|||||||
posts = archive_parser.get_posts(count=10, start_index=0)
|
posts = archive_parser.get_posts(count=10, start_index=0)
|
||||||
filters_posts = []
|
filters_posts = []
|
||||||
for p in posts:
|
for p in posts:
|
||||||
if p["url"] != "http://archive2.home.ms/#":
|
if p["title"] is None:
|
||||||
filters_posts += [p]
|
filters_posts += [p]
|
||||||
return jsonify(filters_posts)
|
return jsonify(filters_posts)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -54,7 +54,7 @@ def get_more_posts():
|
|||||||
posts = archive_parser.get_posts(count=10, start_index=count)
|
posts = archive_parser.get_posts(count=10, start_index=count)
|
||||||
filters_posts = []
|
filters_posts = []
|
||||||
for p in posts:
|
for p in posts:
|
||||||
if p["url"] != "http://archive2.home.ms/#":
|
if p["title"] is None:
|
||||||
filters_posts += [p]
|
filters_posts += [p]
|
||||||
return jsonify(filters_posts)
|
return jsonify(filters_posts)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user