John Smith commited on 2023-177 12:53:53
Showing 1 changed files, with 1 additions and 2 deletions.
| ... | ... |
@@ -15,8 +15,7 @@ local function fn(config, deck) |
| 15 | 15 |
local prctr = 0 |
| 16 | 16 |
for notetext in readtext:gmatch("(..-)\n\n") do
|
| 17 | 17 |
local newcard = Card:new({ note = notetext, ct = "bmc", created = os.time() })
|
| 18 |
- -- these Prompts will just be converted to Rec, so we don't need to exclude answers from prompt-text |
|
| 19 |
- for _re in pt:gmatch("{[^}]+}") do
|
|
| 18 |
+ for _re in notetext:gmatch("{[^}]+}") do
|
|
| 20 | 19 |
table.insert(newcard.pr, Prompt:new({ card = newcard, ease = config:get("StartingEase") }))
|
| 21 | 20 |
prctr = prctr + 1 |
| 22 | 21 |
end |
| 23 | 22 |