Skip to content

Commit

Permalink
Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Oct 9, 2024
1 parent 994c791 commit c1a21d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/serdes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class LoadBackupView(APIView):
parser_classes = (FileUploadParser,)
serializer_class = LoadBackupSerializer

def load_backup(self, request, decompressed_data, backup_version, current_version) :
def load_backup(self, request, decompressed_data, backup_version, current_version):
with open(SQLITE_FILE, "rb") as database_file:
database_recover_data = database_file.read()

Expand Down Expand Up @@ -139,5 +139,7 @@ def post(self, request, *args, **kwargs):
)

decompressed_data = json.dumps(decompressed_data)
return self.load_backup(request, decompressed_data, backup_version, current_version)
return self.load_backup(
request, decompressed_data, backup_version, current_version
)
return Response({}, status=status.HTTP_400_BAD_REQUEST)

0 comments on commit c1a21d4

Please sign in to comment.