mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
add exporters hook
This commit is contained in:
parent
76b356fe0d
commit
7eb8b66b7a
1 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,7 @@ from operator import itemgetter
|
|||
from anki.cards import Card
|
||||
from anki.lang import _
|
||||
from anki.utils import stripHTML, ids2str, splitFields, json
|
||||
from anki.hooks import runHook
|
||||
from anki import Collection
|
||||
|
||||
class Exporter(object):
|
||||
|
@ -290,7 +291,9 @@ class AnkiPackageExporter(AnkiExporter):
|
|||
def exporters():
|
||||
def id(obj):
|
||||
return ("%s (*%s)" % (obj.key, obj.ext), obj)
|
||||
return (
|
||||
exps = [
|
||||
id(AnkiPackageExporter),
|
||||
id(TextNoteExporter),
|
||||
)
|
||||
]
|
||||
runHook("exportersList", exps)
|
||||
return exps
|
||||
|
|
Loading…
Reference in a new issue