From f4f5af5f2d73d24f47221d94f3d01353268c4cb4 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Thu, 17 Aug 2023 16:22:47 +0300 Subject: [PATCH] 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 --- plugins/exporter.koplugin/target/readwise.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exporter.koplugin/target/readwise.lua b/plugins/exporter.koplugin/target/readwise.lua index fd2f7e2ff..cee58d5a1 100644 --- a/plugins/exporter.koplugin/target/readwise.lua +++ b/plugins/exporter.koplugin/target/readwise.lua @@ -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)