Skip to content

Commit 5632bf7

Browse files
committed
fix errors
Signed-off-by: Varsha U N <varshaun58@gmail.com>
1 parent 2b62163 commit 5632bf7

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

scanpipe/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __init__(self, *args, **kwargs):
181181

182182
self.fields["use_local_storage"].label = "Store packages locally"
183183
self.fields["use_local_storage"].help_text = (
184-
"If checked, " "packages will be stored on the local filesystem."
184+
"If checked, packages will be stored on the local filesystem."
185185
)
186186
self.fields["use_local_storage"].widget.attrs.update({"class": "checkbox"})
187187

scanpipe/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4432,8 +4432,9 @@ class Meta:
44324432
]
44334433

44344434
def __str__(self):
4435-
return f"Archive {self.checksum_sha256[:8]} at {self.storage_path
4436-
or self.package_file.name}"
4435+
return f"Archive {self.checksum_sha256[:8]} at {
4436+
self.storage_path or self.package_file.name
4437+
}"
44374438

44384439

44394440
class DownloadedPackage(UUIDPKModel):

scanpipe/pipes/fetch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def fetch_http(uri, to=None):
131131

132132
content_disposition = response.headers.get("content-disposition", "")
133133
msg = Message()
134-
msg['Content-Disposition'] = content_disposition
135-
params = dict(msg.get_params(header='content-disposition'))
134+
msg["Content-Disposition"] = content_disposition
135+
params = dict(msg.get_params(header="content-disposition"))
136136
filename = params.get("filename")
137137
if not filename:
138138
# Using `response.url` in place of provided `Scan.uri` since the former

0 commit comments

Comments
 (0)