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