Skip to content

Commit

Permalink
Wtjepkem/feature/154 add username (#156)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
w-tjepkema authored Feb 5, 2025
1 parent 8175877 commit 9826942
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]" },
{ name="Eric Wolters", email="[email protected]" }
Expand Down
3 changes: 2 additions & 1 deletion src/noshow/dashboard/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9826942

Please sign in to comment.