Skip to content

Commit

Permalink
Merge pull request #2408 from tom0827/TRACK-170
Browse files Browse the repository at this point in the history
Track 170
  • Loading branch information
tom0827 authored Sep 20, 2024
2 parents 70091f7 + f522be1 commit abcea80
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""set new work_types to active
Revision ID: b7a3fafa6f1b
Revises: c3af13f44bed
Create Date: 2024-09-14 15:39:51.264872
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'b7a3fafa6f1b'
down_revision = 'c3af13f44bed'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.execute("UPDATE work_types SET is_active = true WHERE name = 'EAC Extension'")
op.execute("UPDATE work_types SET is_active = true WHERE name = 'EAC/Order Transfer'")
op.execute("UPDATE work_types SET name = 'Substantial Start Determination', is_active = true WHERE name = 'Substantial Start Decision'")
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
1 change: 1 addition & 0 deletions epictrack-api/src/api/reports/resource_forecast_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ def _get_work_team_members(self, work_id) -> Tuple[List[str], str]:
work_team_members = (
db.session.query(StaffWorkRole)
.filter(StaffWorkRole.work_id == work_id)
.filter(StaffWorkRole.is_active.is_(True))
.join(Staff, Staff.id == StaffWorkRole.staff_id)
.add_columns(
Staff.first_name.label("first_name"),
Expand Down

0 comments on commit abcea80

Please sign in to comment.