import streamlit as st from sqlalchemy.orm import Session from sqlalchemy import select from models import Job, ENGINE def post_jobs() -> None: with Session(ENGINE) as session: stmt = select(Job) jobs = session.scalars(stmt).all() if jobs: st.markdown("""

Submit your job applications today!

""",unsafe_allow_html=True) st.caption(f"""

Create your profile and start applying for jobs today. We eagerly anticipate the opportunity to collaborate with you!

""",unsafe_allow_html=True) else: st.caption(f"""

There are currently no available job vacancies. Please check back later. We are eagerly anticipating the opportunity to begin working together.

""",unsafe_allow_html=True) for job in jobs: with st.expander(f"{job.job_id}: {job.post_name}"): st.markdown(f"""

Description:
{job.description}

Experience:
{job.min_experience} - {job.max_experience} year(s)

Responsibilities:
{job.responsibilities}

Primary Skills:
{job.primary_skills}

""",unsafe_allow_html=True) if job.secondary_skills: st.markdown(f"""

Secondary Skills:
{job.secondary_skills}

""",unsafe_allow_html=True) st.markdown(f"""

Apply before:
{job.expires_at}

""",unsafe_allow_html=True) post_jobs()