Merge pull request #953 from GSA/fix-positional-arguments

Adjust positional arguments flagged by flake8-bugbear
This commit is contained in:
Steven Reilly
2023-11-29 09:55:29 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -956,9 +956,9 @@ class OnOffField(GovukRadiosField):
]
super().__init__(
label,
*args,
choices=choices,
thing=f"{choices[0][1].lower()} or {choices[1][1].lower()}",
*args,
**kwargs,
)

View File

@@ -3,7 +3,7 @@ from app.notify_client import NotifyAdminAPIClient, cache
class StatusApiClient(NotifyAdminAPIClient):
def get_status(self, *params):
return self.get(url="/_status", *params)
return self.get(*params, url="/_status")
@cache.set("live-service-and-organization-counts", ttl_in_seconds=3600)
def get_count_of_live_services_and_organizations(self):