fix format

This commit is contained in:
Cayo Puigdefabregas 2023-07-24 09:29:46 +02:00
parent 13d36f5650
commit 1b4159d58b
1 changed files with 2 additions and 3 deletions

View File

@ -15,8 +15,7 @@ from ereuse_devicehub.resources.user.models import User
class UploadSnapshots:
"""
Command.
"""Command.
This command allow upload all snapshots than exist
in the directory snapshots_upload.
@ -62,7 +61,7 @@ class UploadSnapshots:
def open_snapshot(self):
"""Open snapshot file."""
with Path(__file__).parent.joinpath('snapshot_files').joinpath(
self.file_snapshot
self.file_snapshot,
).open() as file_snapshot:
self.json_wb = json.loads(file_snapshot.read())
b_snapshot = bytes(json.dumps(self.json_wb), 'utf-8')