Adds lbrynet.service target

This commit is contained in:
Oleg Silkin 2019-07-30 00:29:26 -04:00
parent 35c95a0037
commit acbcac456f
2 changed files with 5 additions and 4 deletions

View file

@ -2,6 +2,7 @@
Description="LBRY Comment Server Watchdog"
After=network.target
Requires=comment-server@5921.service comment-server@5922.service comment-server@5923.service comment-server@5924.service
Wants=lbrynet.service
[Install]

View file

@ -125,7 +125,7 @@ def get_comment_ids(conn: sqlite3.Connection, claim_id: str, parent_id: str = No
curs = conn.execute("""
SELECT comment_id FROM COMMENTS_ON_CLAIMS
WHERE claim_id = ? AND parent_id IS NULL LIMIT ? OFFSET ?
""", (claim_id, page_size, page_size*abs(page - 1),)
""", (claim_id, page_size, page_size * abs(page - 1),)
)
else:
curs = conn.execute("""