Initial commit

This commit is contained in:
Nate Bowman
2026-10-04 01:39:29 -04:00
commit 62907fd6ee
17 changed files with 81318 additions and 0 deletions

31
flashcards/models.py Normal file
View File

@@ -0,0 +1,31 @@
import genanki
general_css = '''
.card {
font-family: arial;
font-size: 32px;
text-align: center;
color: black;
background-color: white;
white-space: pre-line;
}
'''
simple = genanki.Model(
1653277989,
'Simple Model',
fields=[
{'name': 'Question'},
{'name': 'Answer'},
],
templates=[
{
'name': 'Card 1',
'qfmt': '{{Question}}',
'afmt': '{{FrontSide}}<hr id="answer">{{Answer}}',
},
],
css=general_css
)