Spaces:
Sleeping
Sleeping
add wrong spell to info
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ class Vocab:
|
|
17 |
meaning: str
|
18 |
|
19 |
def info(self):
|
20 |
-
info = (self.
|
21 |
return " - ".join(i for i in info if i)
|
22 |
|
23 |
|
@@ -141,7 +141,7 @@ class App:
|
|
141 |
correct += 1
|
142 |
info = f"{correct}/{total} - 正確"
|
143 |
else:
|
144 |
-
info = f"錯誤 {item.info()}"
|
145 |
record = f"{record}{info}\n"
|
146 |
info = f"{correct}/{total} - {info}"
|
147 |
|
|
|
17 |
meaning: str
|
18 |
|
19 |
def info(self):
|
20 |
+
info = (self.kana, self.kanji, self.meaning)
|
21 |
return " - ".join(i for i in info if i)
|
22 |
|
23 |
|
|
|
141 |
correct += 1
|
142 |
info = f"{correct}/{total} - 正確"
|
143 |
else:
|
144 |
+
info = f"錯誤 {answer} => {item.info()}"
|
145 |
record = f"{record}{info}\n"
|
146 |
info = f"{correct}/{total} - {info}"
|
147 |
|