Skip to content

Commit

Permalink
fix SQL-Statement for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
only-dev-time committed May 26, 2024
1 parent ca786f4 commit c863303
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hive/server/bridge_api/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,11 @@ async def pids_by_bookmarks(db, account: str, sort: str = 'bookmarks', category:
# order by age of bookmarks
order_by = "bookmarks.bookmarked_at DESC"
if start_permlink:
join = "JOIN hive_posts AS posts ON bookmarks.post_id = posts.id"
seek = """
AND bookmarks.bookmarked_at < (
SELECT bookmarked_at FROM hive_bookmarks WHERE post_id = :start_id
SELECT bookmarked_at FROM hive_bookmarks
WHERE post_id = :start_id
AND account = :account
)
"""

Expand Down

0 comments on commit c863303

Please sign in to comment.