Skip to content

Commit

Permalink
Merge pull request #953 from GSA/fix-positional-arguments
Browse files Browse the repository at this point in the history
Adjust positional arguments flagged by flake8-bugbear
  • Loading branch information
stvnrlly authored Nov 29, 2023
2 parents fa90eb0 + 86fbaee commit f392c67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,9 @@ def __init__(self, label, choices=None, *args, **kwargs):
]
super().__init__(
label,
*args,
choices=choices,
thing=f"{choices[0][1].lower()} or {choices[1][1].lower()}",
*args,
**kwargs,
)

Expand Down
2 changes: 1 addition & 1 deletion app/notify_client/status_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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):
Expand Down

0 comments on commit f392c67

Please sign in to comment.