From 1b4159d58b8c7b207aa6ae7ac7458744fce1b1a5 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 24 Jul 2023 09:29:46 +0200 Subject: [PATCH] fix format --- ereuse_devicehub/commands/snapshots.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/commands/snapshots.py b/ereuse_devicehub/commands/snapshots.py index f5b0867b..656ad254 100644 --- a/ereuse_devicehub/commands/snapshots.py +++ b/ereuse_devicehub/commands/snapshots.py @@ -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')