Skip to content

Commit

Permalink
fix: bugfix in evaluation.py for datetime.now issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Dec 9, 2024
1 parent 279b52c commit 578696a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aind_qc_portal/panel/evaluation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import panel as pn
from datetime import datetime, timezone

from aind_data_schema.core.quality_control import QCEvaluation

from aind_qc_portal.panel.metric import QCMetricPanel
Expand Down Expand Up @@ -50,7 +52,7 @@ def panel(self):

md = f"""
{md_style(12, self._data.description if self._data.description else "*no description provided*")}
{md_style(8, f"Current state: **{status_html(self._data.status())}**")}
{md_style(8, f"Current state: **{status_html(self._data.status(date=datetime.now(tz=timezone.utc)))}**")}
{md_style(8, f"Contains **{len(self._data.metrics)}** metrics. {allow_failing_str}")}
"""

Expand Down

0 comments on commit 578696a

Please sign in to comment.