Skip to content

Commit

Permalink
Update .gitignore to exclude all timesheet files and refine forecast …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ElemarJR committed Jan 14, 2025
1 parent 86df125 commit 0b59320
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion backend/models/src/omni_models/analytics/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0b59320

Please sign in to comment.