feat: push interview events to connected calendar integrations #20
1 changed files with 7 additions and 1 deletions
|
|
@ -165,9 +165,15 @@ def resolve_session(app: str = "peregrine") -> None:
|
||||||
|
|
||||||
user_path = _user_data_path(user_id, app)
|
user_path = _user_data_path(user_id, app)
|
||||||
user_path.mkdir(parents=True, exist_ok=True)
|
user_path.mkdir(parents=True, exist_ok=True)
|
||||||
(user_path / "config").mkdir(exist_ok=True)
|
config_path = user_path / "config"
|
||||||
|
config_path.mkdir(exist_ok=True)
|
||||||
(user_path / "data").mkdir(exist_ok=True)
|
(user_path / "data").mkdir(exist_ok=True)
|
||||||
|
|
||||||
|
# Bootstrap config files that the UI requires to exist — never overwrite
|
||||||
|
_kw = config_path / "resume_keywords.yaml"
|
||||||
|
if not _kw.exists():
|
||||||
|
_kw.write_text("skills: []\ndomains: []\nkeywords: []\n")
|
||||||
|
|
||||||
st.session_state["user_id"] = user_id
|
st.session_state["user_id"] = user_id
|
||||||
st.session_state["db_path"] = user_path / "staging.db"
|
st.session_state["db_path"] = user_path / "staging.db"
|
||||||
st.session_state["db_key"] = derive_db_key(user_id)
|
st.session_state["db_key"] = derive_db_key(user_id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue