mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
include info about whether it was a full export
This commit is contained in:
parent
b5c72155a3
commit
63ec4983a4
1 changed files with 2 additions and 0 deletions
|
@ -246,6 +246,7 @@ class AnkiPackageExporter(AnkiExporter):
|
|||
colfile = path.replace(".apkg", ".anki2")
|
||||
AnkiExporter.exportInto(self, colfile)
|
||||
z.write(colfile, "collection.anki2")
|
||||
z.writestr("meta", json.dumps(dict(full=False)))
|
||||
# and media
|
||||
self.prepareMedia()
|
||||
media = {}
|
||||
|
@ -266,6 +267,7 @@ class AnkiPackageExporter(AnkiExporter):
|
|||
self.count = self.col.cardCount()
|
||||
self.col.close()
|
||||
z.write(self.col.path, "collection.anki2")
|
||||
z.writestr("meta", json.dumps(dict(full=True)))
|
||||
self.col.reopen()
|
||||
# copy all media
|
||||
if not self.includeMedia:
|
||||
|
|
Loading…
Reference in a new issue