diff --git a/.safety-policy.yml b/.safety-policy.yml index 4a7b806..1261a6c 100644 --- a/.safety-policy.yml +++ b/.safety-policy.yml @@ -29,6 +29,9 @@ report: 51668: reason: We cannot currently use SQL Alchemy v2. expires: '2024-12-12' + 70612: + reason: We do not use untrusted templates that would require the from_string() method. + expires: '2024-12-12' fail-scan-with-exit-code: diff --git a/rctab/routers/accounting/routes.py b/rctab/routers/accounting/routes.py index 960b54a..55e5526 100644 --- a/rctab/routers/accounting/routes.py +++ b/rctab/routers/accounting/routes.py @@ -426,7 +426,7 @@ def get_approvals(sub_id: UUID) -> Select: @db_select def get_finance(sub_id: UUID) -> Select: - """Get all finance items.""" + """Get all finance items for a subscription.""" return ( select( [ @@ -446,8 +446,7 @@ def get_finance(sub_id: UUID) -> Select: @db_select def get_costrecovery(sub_id: UUID) -> Select: - """Get all cost recovery items for a subscription in asc date order.""" - # order by month asc + """Get all cost recovery items for a subscription.""" return ( select( [ @@ -466,7 +465,7 @@ def get_costrecovery(sub_id: UUID) -> Select: @db_select def get_usage(sub_id: UUID, target_date: datetime.datetime) -> Select: - """Get all of the usage items.""" + """Get all usage items for a subscription.""" return ( select( [