fix: CSS in Update Anking note types script (#2152)

fix: CSS in Update Anking note types script (#2152)

fix: css in Update Anking note types script
diff --git a/scripts/update_anking_note_type_templates_and_css.py b/scripts/update_anking_note_type_templates_and_css.py
index 747e01b..a0f076c 100644
--- a/scripts/update_anking_note_type_templates_and_css.py
+++ b/scripts/update_anking_note_type_templates_and_css.py
@@ -26,6 +26,7 @@ def run(note_type_name_to_anki_id=None):
 
         front_html = (folder / "Front Template.html").read_text()
         back_html = (folder / "Back Template.html").read_text()
+        css = (folder / "Styling.css").read_text()
 
         # All the AnKing note types have only one template, so we take the first one
         template = note_type_dict["tmpls"][0]
@@ -34,7 +35,7 @@ def run(note_type_name_to_anki_id=None):
 
         note_type = NoteType.objects.get(anki_id=anki_id)
         note_type.templates = [template]
-        note_type.css = note_type_dict["css"]
+        note_type.css = css
         updated_note_types.append(note_type)
 
     NoteType.objects.bulk_update(updated_note_types, ["templates", "css"])

GitHub
sha: f5d6513635088e682c67c5265bd3a78f275ee93e