Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Sep 28, 2023
1 parent e8d001a commit 4f2b9bf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tdrs-backend/tdpservice/parsers/schema_defs/tanf/t7.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,19 @@
Field(item="3", name='CALENDAR_QUARTER', type='number', startIndex=2, endIndex=7,
required=True, validators=[validators.dateYearIsLargerThan(1998),
validators.quarterIsValid()]),
TransformField(calendar_quarter_to_rpt_month_year((i - 1) % 3), item="3A", name='RPT_MONTH_YEAR', type='number',
startIndex=2, endIndex=7, required=True, validators=[validators.dateYearIsLargerThan(1998),
validators.dateMonthIsValid()]),
TransformField(
transform_func=calendar_quarter_to_rpt_month_year((i - 1) % 3),
item="3A",
name='RPT_MONTH_YEAR',
type='number',
startIndex=2,
endIndex=7,
required=True,
validators=[
validators.dateYearIsLargerThan(1998),
validators.dateMonthIsValid()
]
),
Field(item="4", name='TDRS_SECTION_IND', type='string', startIndex=section_ind_index,
endIndex=section_ind_index + 1, required=True, validators=[validators.oneOf(['1', '2'])]),
Field(item="5", name='STRATUM', type='string', startIndex=stratum_index,
Expand Down

0 comments on commit 4f2b9bf

Please sign in to comment.