@@ -433,14 +433,14 @@ def _get_resource_list_params(self, offset: typing.Optional[int] = 0) -> typing.
433
433
result ["filter{title.icontains}" ] = self .resource_title_filter
434
434
if self .start_date_filter is not None :
435
435
start_date = dateutil .parser .parse (self .start_date_filter )
436
- result [
437
- "filter{date.gte} "
438
- ] = f" { start_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z"
436
+ result ["filter{date.gte}" ] = (
437
+ f" { start_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z "
438
+ )
439
439
if self .end_date_filter is not None :
440
440
end_date = dateutil .parser .parse (self .end_date_filter )
441
- result [
442
- "filter{date.lte} "
443
- ] = f" { end_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z"
441
+ result ["filter{date.lte}" ] = (
442
+ f" { end_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z "
443
+ )
444
444
if self .keywords_filter is not None :
445
445
result ["filter{keywords.slug.in}" ] = self .keywords_filter
446
446
if self .categories_filter is not None :
@@ -738,14 +738,14 @@ def _get_resource_list_params(self, offset: typing.Optional[int] = 0) -> typing.
738
738
result ["title__icontains" ] = self .resource_title_filter
739
739
if self .start_date_filter is not None :
740
740
start_date = dateutil .parser .parse (self .start_date_filter )
741
- result [
742
- "date__gte "
743
- ] = f" { start_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z"
741
+ result ["date__gte" ] = (
742
+ f" { start_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z "
743
+ )
744
744
if self .end_date_filter is not None :
745
745
end_date = dateutil .parser .parse (self .end_date_filter )
746
- result [
747
- "date__lte "
748
- ] = f" { end_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z"
746
+ result ["date__lte" ] = (
747
+ f" { end_date . astimezone ( dt . timezone . utc ). replace ( microsecond = 0 ). isoformat (). split ( '+' )[ 0 ] } Z "
748
+ )
749
749
if self .keywords_filter is not None :
750
750
result ["keywords__slug__in" ] = "," .join (self .keywords_filter )
751
751
if self .categories_filter is not None :
0 commit comments