Added TODO notes

This commit is contained in:
2025-09-05 21:17:47 +02:00
parent 8023978307
commit 55e8356b1b
2 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ bp = Blueprint(
static_folder="static",
)
# TODO: Move util functions to seperate file (utils.py?)
# Prepares log data for chart.js chart
def prepare_chart_data(
@@ -27,6 +29,9 @@ def prepare_chart_data(
log1 = logs[i]
log2 = logs[i - 1]
# TODO: add timeout duration to log so this can be used
# instead of 1.5 * the current timeout + 1.
# Check if the gap in points exceeds a threshold
if (abs(log1.dateCreatedUTC() - log2.dateCreatedUTC())) > timedelta(
milliseconds=1.5 * (timeout + 1000)