update to 3.25.4
Browse files- app.py +7 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -7,6 +7,11 @@ from markdown import instructions_markdown, faq_markdown
|
|
7 |
from fsrs4anki_optimizer import Optimizer
|
8 |
from pathlib import Path
|
9 |
from utilities import cleanup
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
def get_w_markdown(w):
|
12 |
return f"""
|
@@ -73,8 +78,8 @@ def anki_optimizer(file: gr.File, timezone, next_day_starts_at, revlog_start_dat
|
|
73 |
return w_markdown, markdown_out, plot_output, files_out
|
74 |
|
75 |
|
76 |
-
description = """
|
77 |
-
# FSRS4Anki Optimizer App -
|
78 |
Based on the [tutorial](https://medium.com/@JarrettYe/how-to-use-the-next-generation-spaced-repetition-algorithm-fsrs-on-anki-5a591ca562e2)
|
79 |
of [Jarrett Ye](https://github.com/L-M-Sherlock). This application can give you personalized anki parameters without having to code.
|
80 |
|
|
|
7 |
from fsrs4anki_optimizer import Optimizer
|
8 |
from pathlib import Path
|
9 |
from utilities import cleanup
|
10 |
+
import re
|
11 |
+
|
12 |
+
with open("./requirements.txt", "r") as f:
|
13 |
+
txt = f.read().strip()
|
14 |
+
version = re.search(r"fsrs4anki_optimizer==(.*)", txt).group(1)
|
15 |
|
16 |
def get_w_markdown(w):
|
17 |
return f"""
|
|
|
78 |
return w_markdown, markdown_out, plot_output, files_out
|
79 |
|
80 |
|
81 |
+
description = f"""
|
82 |
+
# FSRS4Anki Optimizer App - v{version}
|
83 |
Based on the [tutorial](https://medium.com/@JarrettYe/how-to-use-the-next-generation-spaced-repetition-algorithm-fsrs-on-anki-5a591ca562e2)
|
84 |
of [Jarrett Ye](https://github.com/L-M-Sherlock). This application can give you personalized anki parameters without having to code.
|
85 |
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
fsrs4anki_optimizer==3.25.
|
|
|
1 |
+
fsrs4anki_optimizer==3.25.4
|