filtering on title instead of url

This commit is contained in:
Jarian Cottingham 2025-10-14 18:00:37 -05:00
parent 5178c34599
commit 30123fdb43

View File

@ -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: