Alejandro Cremades commited on
Commit
6085806
β€’
1 Parent(s): dc7e666

Support Streamlit 1.25.0

Browse files
Middle_School_Card_Search.py CHANGED
@@ -13,11 +13,11 @@ st.set_page_config(
13
  page_icon="πŸƒ",
14
  layout="wide",
15
  )
16
- l = st.sidebar.radio(
17
- label="luage / 言θͺž",
18
- options=["en", "ja"],
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
- l = st.sidebar.radio(
16
- label="luage / 言θͺž",
17
- options=["en", "ja"],
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.link_button(cardname, row.link)
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.link_button(cardname, compose_scryfall_url(row.English))
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: