Skip to content

Commit

Permalink
Update JIF_Puller.py
Browse files Browse the repository at this point in the history
  • Loading branch information
martindalete authored Mar 29, 2023
1 parent ecccfd9 commit 21e7631
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions JIF_Puller.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
IFs = pd.read_csv(r"https://raw.githubusercontent.com/martindalete/JIF_Tool/main/JIFs_2022-08-26.csv?raw=true")

#convert dataframe to csv for exporting purposes
@st.cache_data(suppress_st_warning=True)
@st.cache_data()
def convert_df(df):
return df.to_csv(index=False).encode('utf-8')

#main function that uses list of DOIs with API call
@st.cache_data(suppress_st_warning=True)
@st.cache_data()
def crossref_loop(dataframe):
global csv
global counter
Expand Down Expand Up @@ -160,7 +160,7 @@ def crossref_loop(dataframe):
st.markdown(get_table_download_link(test_df), unsafe_allow_html=True)


@st.cache_data(suppress_st_warning=True)
@st.cache_data()
def get_table_download_link(df):
csv = df.to_csv(index=False)
b64 = base64.b64encode(csv.encode()).decode() # some strings <-> bytes conversions necessary here
Expand Down

0 comments on commit 21e7631

Please sign in to comment.