Skip to content

Commit

Permalink
Updated calls to sqlite's query which had more than one additional ar…
Browse files Browse the repository at this point in the history
  • Loading branch information
threeplanetssoftware committed May 4, 2024
1 parent ea799e0 commit a82014e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/AppleNoteStore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def add_plain_text_to_database
@database.execute("UPDATE ZICNOTEDATA " +
"SET ZPLAINTEXT=?, ZDECOMPRESSEDDATA=? " +
"WHERE Z_PK=?",
note.plaintext, note.decompressed_data, note.primary_key) if note.plaintext
[note.plaintext, note.decompressed_data, note.primary_key]) if note.plaintext
end
end

Expand Down Expand Up @@ -675,7 +675,7 @@ def rip_notes()
"WHERE ZICNOTEDATA.ZDATA NOT NULL AND ZICCLOUDSYNCINGOBJECT.Z_PK=ZICNOTEDATA.ZNOTE AND " +
"ZICCLOUDSYNCINGOBJECT.ZMODIFICATIONDATE1 >= ? AND " +
"ZICCLOUDSYNCINGOBJECT.ZMODIFICATIONDATE1 <= ?"
@database.execute(tmp_query, range_start_core, range_end_core) do |row|
@database.execute(tmp_query, [range_start_core, range_end_core]) do |row|
begin
self.rip_note(row["ZNOTE"])
rescue StandardError => error
Expand Down

0 comments on commit a82014e

Please sign in to comment.