Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
phalbert committed Jun 26, 2024
1 parent 5c500ad commit 7989c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integrations/statuspage/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PerPageParam(StrEnum):
class StatusPageClient:
def __init__(
self,
statuspage_host,
statuspage_host: str,
statuspage_api_key: str,
statuspage_ids: Optional[list[str]] = None,
) -> None:
Expand Down
4 changes: 3 additions & 1 deletion integrations/statuspage/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ async def handle_webhook_request(data: dict[str, Any]) -> dict[str, Any]:
await ocean.register_raw(ObjectKind.INCIDENT, [data["incident"]])

if "incident_updates" in data["incident"]:
await ocean.register_raw(ObjectKind.INCIDENT_UPDATE, data["incident"]["incident_updates"])
await ocean.register_raw(
ObjectKind.INCIDENT_UPDATE, data["incident"]["incident_updates"]
)

return {"ok": True}

Expand Down

0 comments on commit 7989c73

Please sign in to comment.