From 63ec4983a4a3d97fdcb095f17121c6e5835c1869 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 24 Oct 2012 17:53:53 +0900 Subject: [PATCH] include info about whether it was a full export --- anki/exporting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anki/exporting.py b/anki/exporting.py index 17003f35b..ea3817968 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -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: