TODO relaunch pending comments on count request as CRON alternative
This commit is contained in:
parent
661eb35717
commit
d8794bb35e
1 changed files with 1 additions and 0 deletions
|
@ -38,5 +38,6 @@ def query_comments():
|
||||||
|
|
||||||
@app.route("/api/comments/count", methods=["GET"])
|
@app.route("/api/comments/count", methods=["GET"])
|
||||||
def get_comments_count():
|
def get_comments_count():
|
||||||
|
# TODO process pending comments
|
||||||
url = request.args.get("url", "")
|
url = request.args.get("url", "")
|
||||||
return jsonify({"count": dao.count_published_comments(url)})
|
return jsonify({"count": dao.count_published_comments(url)})
|
||||||
|
|
Loading…
Add table
Reference in a new issue