Page 1 of 1

Support for incremental updates to Decks in Google Drive

PostPosted: Wed Oct 09, 2019 10:38 pm
by Guest
This is a feature request. It'd be great if decks imported from Google drive could be updated incrementally. I use spaced repetition to aid my learning process. But if I add new rows to a spreadsheet (I'm in a German class right now and we get new vocabulary daily) and then reimport it, it's a brand new deck. It'd be great if the app could understand it's the same deck (just by the name of the Spreadsheet would be fine) and diff the local rows on the device against the rows in Google Drive and add new rows (and preferably remove old ones, e.g. when I realize I have a spelling or translation mistake and modify a row). Is such a thing possible? If the code's on github or another open-source site, I'm happy to contribute such functionality.



Re: Support for incremental updates to Decks in Google Drive

PostPosted: Sat Oct 12, 2019 3:26 am
by Ernie
Hi Jeff,

Sorry for slow response.

Instead of adding a new deck, update an existing one:

Tap "Edit", then tap deck. Notice the "Deck Code". It will start with "G:" for Google Drive sources, and then be the name of the Drive file.
Tap "Download/Update". This will download the latest data from Drive (based on Deck Code).
All existing cards will be deleted and the new cards installed. BUT, the app will try to match up old and new cards so that it can copy statistics from old to new cards (so you don't lose your statistics). It does this by looking for unique matches between old and new cards either by Text 1, Text 2 or Text 1 + Text 2. If you change both Text 1 and Text 2 at the same time for an existing card, statistics will be lost.

Hopefully this will solve your problem.