File size: 403 Bytes
d03e822
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from navigation import make_sidebar
import streamlit as st
from time import sleep
import yaml

make_sidebar()

with st.button("Get job details"):
    with open(f'data/jobs/jobs.yaml', 'r') as file:
        jobs = yaml.safe_load(file)
    for key,value in jobs.item():
        with st.button(f"{key}"):
            st.session_state["admin_job"] = key
            st.switch_page("pages/admin_job.py")