update field
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def handle_json_output(json_list : list) :
|
|
127 |
back = element["backText"]
|
128 |
element["frontHTML"] = (f'<div id="element-richtextarea-{random_string1}" style="position:absolute;left:100px;top:50px;width:800px;height:300px;text-align:center;display:flex;align-items:center;font-size:40px;\">'
|
129 |
f'<p>{front}</p></div>')
|
130 |
-
element["
|
131 |
f'<p>{back}</p></div>')
|
132 |
element["termType"] = "basic"
|
133 |
cloze_matches = re.findall(r'_{2,}', front)
|
@@ -143,7 +143,7 @@ def handle_json_output(json_list : list) :
|
|
143 |
element["frontHTML"] = (f'<div id="element-richtextarea-{random_string1}" style="position:absolute;left:100px;top:50px;width:800px;height:300px;text-align:center;display:flex;align-items:center;font-size:40px;\">'
|
144 |
f'<p>{front}</p></div>')
|
145 |
element["backText"] = ""
|
146 |
-
element["
|
147 |
f'<p><br></p></div>')
|
148 |
|
149 |
return json_list
|
|
|
127 |
back = element["backText"]
|
128 |
element["frontHTML"] = (f'<div id="element-richtextarea-{random_string1}" style="position:absolute;left:100px;top:50px;width:800px;height:300px;text-align:center;display:flex;align-items:center;font-size:40px;\">'
|
129 |
f'<p>{front}</p></div>')
|
130 |
+
element["backHTML"] = (f'<div id="element-richtextarea-{random_string2}" style="position:absolute;left:100px;top:50px;width:800px;height:300px;text-align:center;display:flex;align-items:center;font-size:40px;\">'
|
131 |
f'<p>{back}</p></div>')
|
132 |
element["termType"] = "basic"
|
133 |
cloze_matches = re.findall(r'_{2,}', front)
|
|
|
143 |
element["frontHTML"] = (f'<div id="element-richtextarea-{random_string1}" style="position:absolute;left:100px;top:50px;width:800px;height:300px;text-align:center;display:flex;align-items:center;font-size:40px;\">'
|
144 |
f'<p>{front}</p></div>')
|
145 |
element["backText"] = ""
|
146 |
+
element["backHTML"] = (f'<div id="element-richtextarea-{random_string2}" style="position:absolute;left:100px;top:50px;width:800px;height:300px;text-align:center;display:flex;align-items:center;font-size:40px;\">'
|
147 |
f'<p><br></p></div>')
|
148 |
|
149 |
return json_list
|