Crowdanki für GV
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import json
|
||||
import hashlib
|
||||
|
||||
path="Schwedisch_Goetheverlag"
|
||||
|
||||
base91chars = (
|
||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
|
||||
@@ -20,7 +21,7 @@ def anki_guid(text: str) -> str:
|
||||
|
||||
return ''.join(chars)
|
||||
|
||||
with open('Schwedisch_Goetheverlag/deck.json', 'r', encoding='utf-8') as f:
|
||||
with open(path+'/deck.json', 'r', encoding='utf-8') as f:
|
||||
data = json.load(f)
|
||||
|
||||
|
||||
@@ -83,5 +84,5 @@ for note in original_notes:
|
||||
|
||||
data['notes'].extend(new_notes)
|
||||
|
||||
with open('Schwedisch_Goetheverlag/crowdanki_export_dupliziert.json', 'w', encoding='utf-8') as f:
|
||||
with open(path+'/crowdanki_export_dupliziert.json', 'w', encoding='utf-8') as f:
|
||||
json.dump(data, f, ensure_ascii=False, indent=2)
|
||||
Reference in New Issue
Block a user