Skip to content

Commit f938077

Browse files
committed
Correct docstrings/comments and ignore jinja2 vulnerability
1 parent cc9cfae commit f938077

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.safety-policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ report:
3030
reason: We cannot currently use SQL Alchemy v2.
3131
expires: '2024-12-12'
3232
70612:
33-
reason: No known fix for jinja2==3.1.4.
33+
reason: We do not use untrusted templates that would require the from_string() method.
3434
expires: '2024-12-12'
3535

3636

rctab/routers/accounting/routes.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def get_approvals(sub_id: UUID) -> Select:
426426

427427
@db_select
428428
def get_finance(sub_id: UUID) -> Select:
429-
"""Get all finance items."""
429+
"""Get all finance items for a subscription."""
430430
return (
431431
select(
432432
[
@@ -446,8 +446,7 @@ def get_finance(sub_id: UUID) -> Select:
446446

447447
@db_select
448448
def get_costrecovery(sub_id: UUID) -> Select:
449-
"""Get all cost recovery items for a subscription in asc date order."""
450-
# order by month asc
449+
"""Get all cost recovery items for a subscription."""
451450
return (
452451
select(
453452
[
@@ -466,7 +465,7 @@ def get_costrecovery(sub_id: UUID) -> Select:
466465

467466
@db_select
468467
def get_usage(sub_id: UUID, target_date: datetime.datetime) -> Select:
469-
"""Get all of the usage items."""
468+
"""Get all usage items for a subscription."""
470469
return (
471470
select(
472471
[

0 commit comments

Comments
 (0)