Jung commited on
Commit
2e85c7a
·
1 Parent(s): c038176

auto updated date

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -7,6 +7,8 @@ import streamlit as st
7
  from pathlib import Path
8
  from collections import defaultdict
9
 
 
 
10
  #########################################
11
  # Helpers Functions
12
 
@@ -173,7 +175,7 @@ st.header(f'HeroPlan Explorer')
173
  st.write('Powered by Heroplan.io : Thanks E&P community for continually update hero data.')
174
 
175
  df = pd.read_csv('heroes_ep.csv')
176
- st.write(f'### Updated: December 9, 2023 -- Total heroes in HeroPlan database = {len(df)} (including Toon Costume3)')
177
 
178
  df_extra = pd.read_csv("heroes_ep_extra.csv")
179
  all_name_extra = sorted(list(df_extra['name'].values))
@@ -372,4 +374,4 @@ else:
372
  lb_choice = st.selectbox(label='Limit Break:', options=lb_list, index=0)
373
 
374
  df_ret = return_hero_stat(df_extra, name_choice, lb_choice=lb_choice, costume_choice=costume_choice)
375
- display_heroes_from_df(df_ret,display_cols=df_ret.columns[:-2]) # display all except special-skill text
 
7
  from pathlib import Path
8
  from collections import defaultdict
9
 
10
+ import os, time
11
+
12
  #########################################
13
  # Helpers Functions
14
 
 
175
  st.write('Powered by Heroplan.io : Thanks E&P community for continually update hero data.')
176
 
177
  df = pd.read_csv('heroes_ep.csv')
178
+ st.write(f'### Updated: {time.ctime(os.path.getmtime("heroes_ep.csv"))} -- Total heroes in HeroPlan database = {len(df)}')
179
 
180
  df_extra = pd.read_csv("heroes_ep_extra.csv")
181
  all_name_extra = sorted(list(df_extra['name'].values))
 
374
  lb_choice = st.selectbox(label='Limit Break:', options=lb_list, index=0)
375
 
376
  df_ret = return_hero_stat(df_extra, name_choice, lb_choice=lb_choice, costume_choice=costume_choice)
377
+ display_heroes_from_df(df_ret,display_cols=df_ret.columns[:-2]) # display all except special-skill text