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("""
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}
Secondary Skills:
{job.secondary_skills}
Apply before:
{job.expires_at}