Skip to content

Commit

Permalink
chore: run back format
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Sep 13, 2024
1 parent 789bf86 commit beb3d47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/core/base_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def clean(self) -> None:
if not self.is_unique_in_scope(scope=scope, fields_to_check=_fields_to_check):
for field in _fields_to_check:
if not self.is_unique_in_scope(scope=scope, fields_to_check=[field]):
field_errors[
field
] = f"{getattr(self, field)} is already used in this scope. Please choose another value."
field_errors[field] = (
f"{getattr(self, field)} is already used in this scope. Please choose another value."
)
super().clean()
if field_errors:
raise ValidationError(field_errors)
Expand Down
6 changes: 3 additions & 3 deletions backend/serdes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def get(self, request, *args, **kwargs):
return Response(status=status.HTTP_403_FORBIDDEN)
response = HttpResponse(content_type="application/json")
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
response[
"Content-Disposition"
] = f'attachment; filename="ciso-assistant-db-{timestamp}.json"'
response["Content-Disposition"] = (
f'attachment; filename="ciso-assistant-db-{timestamp}.json"'
)

buffer = io.StringIO()
buffer.write(f'[{{"meta": [{{"media_version": "{VERSION}"}}]}},\n')
Expand Down

0 comments on commit beb3d47

Please sign in to comment.