Skip to content

Commit

Permalink
💎 update db results templates
Browse files Browse the repository at this point in the history
  • Loading branch information
PitButtchereit committed May 24, 2024
1 parent 8d3f910 commit b07d6c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Welcome to the Database Results</h2>
</div>

<a href="{% url 'landing_page' %}">
<button class="menu_button">Return to TracEX menu</button>
<button class="menu_button">Return to TracEX Menu</button>
</a>
</body>
</html>
1 change: 0 additions & 1 deletion tracex_project/db_results/templates/evaluation.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ <h1 style="text-align: center">Evaluation View</h1>

<input type="submit" value="Refresh Filter" class="function_button">
</form>
<br>

<!-- Trigger/Open The Modal (XES Download) -->
<button id="downloadBtn" class="function_button">Download XES File</button>
Expand Down
2 changes: 1 addition & 1 deletion tracex_project/db_results/templates/metrics_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h3>Timestamp Correctnes Bar Chart</h3>
<button class="menu_button">Return to Database Results Overview</button>
</a>
<a href="{% url 'landing_page' %}">
<button class="menu_button">Return to TracEX menu</button>
<button class="menu_button">Return to TracEX Menu</button>
</a>
</body>
</html>
4 changes: 2 additions & 2 deletions tracex_project/db_results/templates/metrics_pj_overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ <h2>Welcome to the Metrics Dashboard</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="menu_button">Select this Patient Journey</button>
<button type="submit" class="function_button">Select this Patient Journey</button>
</form>

<a href="{% url 'db_results_overview' %}">
<button class="menu_button">Return to Database Results Overview</button>
</a>

<a href="{% url 'landing_page' %}">
<button class="menu_button">Return to TracEX menu</button>
<button class="menu_button">Return to TracEX Menu</button>
</a>
</body>
</html>
3 changes: 2 additions & 1 deletion tracex_project/db_results/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def get_context_data(self, **kwargs):
)

cohorts_df = pd.DataFrame(cohorts_data)
cohorts_df["age"] = cohorts_df["age"].astype(pd.Int64Dtype())
if not cohorts_df.empty:
cohorts_df["age"] = cohorts_df["age"].astype(pd.Int64Dtype())
filter_dict = {
"event_type": configuration.get("event_types"),
"attribute_location": configuration.get("locations"),
Expand Down

0 comments on commit b07d6c8

Please sign in to comment.