fix the more endpoint ... need to remove that
This commit is contained in:
parent
eb355fa644
commit
5178c34599
@ -52,8 +52,11 @@ def get_more_posts():
|
|||||||
|
|
||||||
# Use archive parser to fetch posts
|
# Use archive parser to fetch posts
|
||||||
posts = archive_parser.get_posts(count=10, start_index=count)
|
posts = archive_parser.get_posts(count=10, start_index=count)
|
||||||
|
filters_posts = []
|
||||||
return jsonify(posts)
|
for p in posts:
|
||||||
|
if p["url"] != "http://archive2.home.ms/#":
|
||||||
|
filters_posts += [p]
|
||||||
|
return jsonify(filters_posts)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error: {e}")
|
print(f"Error: {e}")
|
||||||
return jsonify({"error": "Failed to fetch more posts"}), 500
|
return jsonify({"error": "Failed to fetch more posts"}), 500
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user