Skip to content

Commit

Permalink
Fix some class names
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjb committed Jan 24, 2024
1 parent ec8e732 commit 42679e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions canarytokens/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,7 @@ class DownloadCMDRequest(TokenDownloadRequest):
fmt: Literal[DownloadFmtTypes.CMD] = DownloadFmtTypes.CMD


class DownloadCSSClonedWebTokenRequest(TokenDownloadRequest):
class DownloadCSSClonedWebRequest(TokenDownloadRequest):
fmt: Literal[DownloadFmtTypes.CSSCLONEDSITE] = DownloadFmtTypes.CSSCLONEDSITE


Expand All @@ -2207,7 +2207,7 @@ class DownloadSlackAPIRequest(TokenDownloadRequest):
DownloadAzureIDCertRequest,
DownloadCCRequest,
DownloadCMDRequest,
DownloadCSSClonedWebTokenRequest,
DownloadCSSClonedWebRequest,
DownloadIncidentListCSVRequest,
DownloadIncidentListJsonRequest,
DownloadKubeconfigRequest,
Expand Down Expand Up @@ -2322,7 +2322,7 @@ class DownloadCMDResponse(TokenDownloadResponse):
auth: str


class DownloadCSSClonedWebTokenResponse(TokenDownloadResponse):
class DownloadCSSClonedWebResponse(TokenDownloadResponse):
contenttype: Literal[
DownloadContentTypes.TEXTPLAIN
] = DownloadContentTypes.TEXTPLAIN
Expand Down
10 changes: 5 additions & 5 deletions frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
ClonedWebTokenResponse,
CSSClonedWebTokenRequest,
CSSClonedWebTokenResponse,
DownloadCSSClonedWebTokenRequest,
DownloadCSSClonedWebTokenResponse,
DownloadCSSClonedWebRequest,
DownloadCSSClonedWebResponse,
CMDTokenRequest,
CMDTokenResponse,
CustomBinaryTokenRequest,
Expand Down Expand Up @@ -603,10 +603,10 @@ def _(

@create_download_response.register
def _(
download_request_details: DownloadCSSClonedWebTokenRequest, canarydrop: Canarydrop
) -> DownloadCSSClonedWebTokenResponse:
download_request_details: DownloadCSSClonedWebRequest, canarydrop: Canarydrop
) -> DownloadCSSClonedWebResponse:
""""""
return DownloadCSSClonedWebTokenResponse(
return DownloadCSSClonedWebResponse(
token=download_request_details.token,
auth=download_request_details.auth,
content=canarydrop.get_cloned_site_css(frontend_settings.CLOUDFRONT_URL),
Expand Down

0 comments on commit 42679e3

Please sign in to comment.