From 0b593201e13b1b106d13fcd3f016962892bfb40e Mon Sep 17 00:00:00 2001 From: Elemar Rodrigues Severo Junior Date: Tue, 14 Jan 2025 09:10:05 -0300 Subject: [PATCH] Update .gitignore to exclude all timesheet files and refine forecast logic - Modified .gitignore to prevent tracking of all timesheet files by using a wildcard pattern. - Updated the forecast computation logic to include a status check for 'open' in consulting tracker info, enhancing the accuracy of project identification. These changes improve project maintainability and the reliability of forecast calculations. --- .gitignore | 13 +------------ .../models/src/omni_models/analytics/forecast.py | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 0a3ebf8f..56f48cbe 100644 --- a/.gitignore +++ b/.gitignore @@ -116,15 +116,4 @@ frontend/yarn.lock # Uncomment if you're using PDM # pdm.lock # .pdm.toml -ts_2024/abr_2024.timesheet -ts_2024/ago_2024.timesheet -ts_2024/dez_2024.timesheet -ts_2024/fev_2024.timesheet -ts_2024/jan_2024.timesheet -ts_2024/jul_2024.timesheet -ts_2024/jun_2024.timesheet -ts_2024/mai_2024.timesheet -ts_2024/mar_2024.timesheet -ts_2024/nov_2024.timesheet -ts_2024/out_2024.timesheet -ts_2024/set_2024.timesheet +*.timesheet \ No newline at end of file diff --git a/backend/models/src/omni_models/analytics/forecast.py b/backend/models/src/omni_models/analytics/forecast.py index 96442e04..3b09e43b 100644 --- a/backend/models/src/omni_models/analytics/forecast.py +++ b/backend/models/src/omni_models/analytics/forecast.py @@ -286,7 +286,7 @@ def filter_items(items): wah = case_.weekly_approved_hours project_ = None for ti in case_.tracker_info: - if ti.kind == 'consulting': + if ti.kind == 'consulting' and ti.status == "open": project_ = ti break