Exporter: fix order for Readwise (#10824)

Exported highlights are good sorted by position, page numbers could be wrong.
Closes #10817.

For reference: https://readwise.io/api_deets
This commit is contained in:
hius07
2023-08-17 16:22:47 +03:00
committed by GitHub
parent 7e628958b6
commit f4f5af5f2d

View File

@@ -106,7 +106,7 @@ function ReadwiseExporter:createHighlights(booknotes)
category = "books",
note = clipping.note,
location = clipping.page,
location_type = "page",
location_type = "order",
highlighted_at = os.date("!%Y-%m-%dT%TZ", clipping.time),
}
table.insert(highlights, highlight)