Crowdanki für GV

This commit is contained in:
2025-06-18 04:56:27 +02:00
parent 7d39f93297
commit cbae3380a9
174 changed files with 24241 additions and 42417 deletions

View File

@@ -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)