Skip to content

Commit 74f92c0

Browse files
committed
delete old model data file
This file is no longer used, as its contents have been subsumed into models.py.
1 parent 8e7a07e commit 74f92c0

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

src/gen_notes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import re
33
from typing import Any, Callable, Dict, Iterable, List, Optional, TYPE_CHECKING
44

5-
from . import model_data as lpcg_models
6-
75
if TYPE_CHECKING:
86
from anki.notes import Note
97

@@ -259,7 +257,7 @@ def add_notes(col: Any, note_constructor: Callable,
259257
"""
260258
added = 0
261259
for line in _poemlines_from_textlines(text, group_lines):
262-
n = note_constructor(col, col.models.byName(lpcg_models.NAME))
260+
n = note_constructor(col, col.models.byName("LPCG 1.0"))
263261
line.populate_note(n, title, tags, context_lines, recite_lines, deck_id)
264262
col.addNote(n)
265263
added += 1

src/model_data.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)