From 1cd6f62adcca0fb87b8d8bf6ae72a2c4a5d50992 Mon Sep 17 00:00:00 2001 From: stephen Date: Tue, 30 Jun 2026 17:57:41 +1000 Subject: [PATCH] ankinotes working except an } --- anki_exporter.py | 14 ++++++++------ spanish_trainer.db | Bin 217088 -> 217088 bytes 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/anki_exporter.py b/anki_exporter.py index ecc2e0b..20a2650 100644 --- a/anki_exporter.py +++ b/anki_exporter.py @@ -23,9 +23,9 @@ def compile_anki_package(records, output_path, deck_name): Resolves voice models dynamically by gender selection parameters and applies global speed coefficient rates from the active configurations. """ - # Incrementing both forces a completely clean slate for both layout and deck container - model_id = 1684329015 - deck_id = 1684329015 + # Bumping IDs to completely clear any remaining local cache + model_id = 1684329050 + deck_id = 1684329050 # Global Configuration Pace Resolver Mapping settings = database.load_all_settings() or {} @@ -58,7 +58,7 @@ def compile_anki_package(records, output_path, deck_name): 'afmt': '{{FrontSide}}
' '
{{SpanishText}}

' '
{{Notes}}
' - '{{#AnkiNotes}}
Anki Meta: {{AnkiNotes}}
{{/AnkiNotes}}
' + '{{#AnkiNotes}}
Anki Meta: {{{AnkiNotes}}}
{{/AnkiNotes}}
' '
{{SpanishAudio}}
', }, { @@ -69,7 +69,7 @@ def compile_anki_package(records, output_path, deck_name): 'afmt': '{{FrontSide}}
' '
{{EnglishText}}

' '
{{Notes}}
' - '{{#AnkiNotes}}
Anki Meta: {{AnkiNotes}}
{{/AnkiNotes}}
' + '{{#AnkiNotes}}
Anki Meta: {{{AnkiNotes}}}
{{/AnkiNotes}}
' '
{{EnglishAudio}}
', } ] @@ -105,7 +105,9 @@ def compile_anki_package(records, output_path, deck_name): notes_html_parts.append(f"
Context: {record['source_context'].strip()}
") notes_html = "".join(notes_html_parts) - anki_notes_html = f"
{record['anki_notes'].strip()}
" if record.get('anki_notes') else "" + + # Safely isolate the raw text data string down to Anki + anki_notes_html = record['anki_notes'].strip() if record.get('anki_notes') else "" # Standard Unique Media Filenames en_audio_filename = f"edge_en_{idx}_{model_id}.mp3" diff --git a/spanish_trainer.db b/spanish_trainer.db index 6cb9c3237cfcff88b333e7f68290ee18ffa8a670..0682e48e28d0875caab7caa53e2a393fb2685aaf 100644 GIT binary patch delta 139 zcmZozz}v8ZcY-uy;6xc`#=wmUOa0lILK*lUGKFsD3Gig%ZRB9$Vo+3+6jzmORG<7Z zz{op4$Bs)u!6qlu&MmX3xI`hiB(=asAIOD@2B#+H=cQl>hh$_HA&c7R=jSxv4{E<3 M#JK%_5R>9x02A&jmjD0& delta 185 zcmZozz}v8ZcY-uyz(g5m#(<3pOa0jy?lAB_WVo}LC%}`bz9b`6AuTmGGcPkQRUt3G zG*3ajAhoDCKQB>T&qlu_#g0n>2y9AH6q0iii;HcQa#KqZmF$A@^GmE03KEMm4{y#> z&;T-uGxPH_^%UHT5_5ACOEQxaa}*NOi&9f_Q}ap`k~311vr)~nb4$%l%;8RjSOO%A Sn(qg--w$Hkem{sw@h