Spaces:
Running
Running
Alejandro Cremades
commited on
Commit
β’
6085806
1
Parent(s):
dc7e666
Support Streamlit 1.25.0
Browse files- Middle_School_Card_Search.py +4 -4
- pages/1_Check_Card_List.py +4 -4
- requirements.txt +1 -1
- streamlit_common/lib.py +2 -2
Middle_School_Card_Search.py
CHANGED
@@ -13,11 +13,11 @@ st.set_page_config(
|
|
13 |
page_icon="π",
|
14 |
layout="wide",
|
15 |
)
|
16 |
-
|
17 |
-
label="
|
18 |
-
options=["
|
19 |
-
captions=["English", "ζ₯ζ¬θͺ"],
|
20 |
)
|
|
|
21 |
st.write(f'# {_["search"]["title"][l]}')
|
22 |
st.write(_["search"]["instructions"][l])
|
23 |
|
|
|
13 |
page_icon="π",
|
14 |
layout="wide",
|
15 |
)
|
16 |
+
lang = st.sidebar.radio(
|
17 |
+
label="Language / θ¨θͺ",
|
18 |
+
options=["English", "ζ₯ζ¬θͺ"],
|
|
|
19 |
)
|
20 |
+
l = "ja" if lang == "ζ₯ζ¬θͺ" else "en"
|
21 |
st.write(f'# {_["search"]["title"][l]}')
|
22 |
st.write(_["search"]["instructions"][l])
|
23 |
|
pages/1_Check_Card_List.py
CHANGED
@@ -12,11 +12,11 @@ st.set_page_config(
|
|
12 |
page_icon="π",
|
13 |
layout="wide",
|
14 |
)
|
15 |
-
|
16 |
-
label="
|
17 |
-
options=["
|
18 |
-
captions=["English", "ζ₯ζ¬θͺ"],
|
19 |
)
|
|
|
20 |
st.write(f'# {_["check"]["title"][l]}')
|
21 |
st.write(_["check"]["instructions"][l])
|
22 |
|
|
|
12 |
page_icon="π",
|
13 |
layout="wide",
|
14 |
)
|
15 |
+
lang = st.sidebar.radio(
|
16 |
+
label="Language / θ¨θͺ",
|
17 |
+
options=["English", "ζ₯ζ¬θͺ"],
|
|
|
18 |
)
|
19 |
+
l = "ja" if lang == "ζ₯ζ¬θͺ" else "en"
|
20 |
st.write(f'# {_["check"]["title"][l]}')
|
21 |
st.write(_["check"]["instructions"][l])
|
22 |
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
pandas
|
2 |
-
streamlit
|
|
|
1 |
pandas
|
2 |
+
streamlit==1.25.0
|
streamlit_common/lib.py
CHANGED
@@ -14,7 +14,7 @@ def row_to_link(row: pd.DataFrame) -> None:
|
|
14 |
cardname = row["name"]
|
15 |
if row.name_ja is not "":
|
16 |
cardname = f"{cardname} / {row.name_ja}"
|
17 |
-
st.
|
18 |
|
19 |
|
20 |
def row_to_button_link(row: pd.DataFrame) -> None:
|
@@ -22,7 +22,7 @@ def row_to_button_link(row: pd.DataFrame) -> None:
|
|
22 |
cardname = row.English
|
23 |
if row.ζ₯ζ¬θͺ is not "":
|
24 |
cardname = f"{cardname} / {row.ζ₯ζ¬θͺ}"
|
25 |
-
st.
|
26 |
|
27 |
|
28 |
def get_legal_cardnames(cardname: str, mslist_df: pd.DataFrame) -> list:
|
|
|
14 |
cardname = row["name"]
|
15 |
if row.name_ja is not "":
|
16 |
cardname = f"{cardname} / {row.name_ja}"
|
17 |
+
st.write(f"- [{cardname}]({row.link})")
|
18 |
|
19 |
|
20 |
def row_to_button_link(row: pd.DataFrame) -> None:
|
|
|
22 |
cardname = row.English
|
23 |
if row.ζ₯ζ¬θͺ is not "":
|
24 |
cardname = f"{cardname} / {row.ζ₯ζ¬θͺ}"
|
25 |
+
st.write(f"- [{cardname}]({compose_scryfall_url(row.English)})")
|
26 |
|
27 |
|
28 |
def get_legal_cardnames(cardname: str, mslist_df: pd.DataFrame) -> list:
|