Skip to content

Commit

Permalink
Correct docstrings/comments and ignore jinja2 vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain-S committed May 17, 2024
1 parent a214742 commit 62cba90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .safety-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 3 additions & 4 deletions rctab/routers/accounting/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand All @@ -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(
[
Expand All @@ -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(
[
Expand Down

0 comments on commit 62cba90

Please sign in to comment.