Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,12 +70,12 @@ if st.button("sync"):
|
|
70 |
if st.session_state['sync']:
|
71 |
|
72 |
st.session_state['selected_branches'] = st.session_state['branches_list']
|
73 |
-
st.session_state['selected_contributor'] =
|
74 |
# Branch selection
|
75 |
branch_option = st.radio("Select branches:", options=["all", "specific"])
|
76 |
|
77 |
if branch_option == "specific":
|
78 |
-
st.session_state['selected_branches'] = st.multiselect("Select branches", options=st.session_state['branches_list'], default=
|
79 |
|
80 |
# Contributor selection
|
81 |
st.session_state['selected_contributor'] = st.selectbox("Select contributor name", options=st.session_state['contributors_list'])
|
@@ -90,6 +90,8 @@ if st.session_state['sync']:
|
|
90 |
|
91 |
if st.session_state['Recap']:
|
92 |
# get_contributor_commits(repo_name, contributor, period, updated_token=None)
|
|
|
|
|
93 |
if st.session_state['commits']:
|
94 |
st.text(str(len(st.session_state['commits'])), " commits fetched")
|
95 |
else:
|
|
|
70 |
if st.session_state['sync']:
|
71 |
|
72 |
st.session_state['selected_branches'] = st.session_state['branches_list']
|
73 |
+
st.session_state['selected_contributor'] = [] # Reset selected contributor
|
74 |
# Branch selection
|
75 |
branch_option = st.radio("Select branches:", options=["all", "specific"])
|
76 |
|
77 |
if branch_option == "specific":
|
78 |
+
st.session_state['selected_branches'] = st.multiselect("Select branches", options=st.session_state['branches_list'], default=st.session_state['branches_list'])
|
79 |
|
80 |
# Contributor selection
|
81 |
st.session_state['selected_contributor'] = st.selectbox("Select contributor name", options=st.session_state['contributors_list'])
|
|
|
90 |
|
91 |
if st.session_state['Recap']:
|
92 |
# get_contributor_commits(repo_name, contributor, period, updated_token=None)
|
93 |
+
print(st.session_state['commits'])
|
94 |
+
print(len(st.session_state['commits']))
|
95 |
if st.session_state['commits']:
|
96 |
st.text(str(len(st.session_state['commits'])), " commits fetched")
|
97 |
else:
|