From 982694285a2e6c23fee41d7f0d3ddb17aa1cd86a Mon Sep 17 00:00:00 2001 From: w-tjepkema <120738726+w-tjepkema@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:01:34 +0100 Subject: [PATCH] Wtjepkem/feature/154 add username (#156) * Add current username to saved message in calling dashboard. * Update README.md to clarify that the FastAPI application runs every two hours. * Update CHANGELOG.md * Changed version number in pyproject.toml to 1.5.2 --- CHANGELOG.md | 8 ++++++++ README.md | 2 +- pyproject.toml | 2 +- src/noshow/dashboard/layout.py | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 724ffd0..60faec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [1.5.2] - 2025-02-05 + +### Added +- Added current username to saved message in calling dashboard + +### Changed +- Changed information that fastapi runs once per day to every two hours in README.md + ## [1.5.1] - 2024-12-23 ### Added diff --git a/README.md b/README.md index b4f6224..ed92233 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Deployment is done through the manifest files. ## Applications ### Prediction Api -The prediction API is a fastapi application that runs once per day and gives predictions for all input appointments given the start date. The API expects the complete history of all appointments of a patient to construct the features, but will only return predictions that are on the `start_date` or later. +The prediction API is a fastapi application that runs every two hours and gives predictions for all input appointments given the start date. The API expects the complete history of all appointments of a patient to construct the features, but will only return predictions that are on the `start_date` or later. The API also saves the prediction and information of the request to a database. Furthermore it will delete all previous rows of sensitive information (name, birthdate, phone number) and only add the sensitive info for the predictions of that day. This way we only store sensitive info for the day in which the patient needs te be called. All other info will be collected and used to validate the results of the pilot. diff --git a/pyproject.toml b/pyproject.toml index a830e8c..d526686 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "noshow" -version = "1.5.1" +version = "1.5.2" authors = [ { name="Ruben Peters", email="r.peters-7@umcutrecht.nl" }, { name="Eric Wolters", email="e.j.wolters-4@umcutrecht.nl" } diff --git a/src/noshow/dashboard/layout.py b/src/noshow/dashboard/layout.py index 5add0e4..6ebfa00 100644 --- a/src/noshow/dashboard/layout.py +++ b/src/noshow/dashboard/layout.py @@ -208,7 +208,8 @@ def render_appointment_overview( ) if current_response.timestamp is not None: st.caption( - f"Laatst opgeslagen om: {current_response.timestamp:%Y-%m-%d %H:%M:%S}" + f"Laatst opgeslagen om: {current_response.timestamp:%Y-%m-%d %H:%M:%S}," + f" door: {current_response.user}" ) st.button( "Vorige",