From 660e2384682b2f7f02135aca1e85f3b9b7ddb724 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 13 Jun 2022 17:59:54 +0200 Subject: [PATCH] fix order of vars declared --- ereuse_devicehub/resources/action/views/snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/action/views/snapshot.py b/ereuse_devicehub/resources/action/views/snapshot.py index e97f3a2c..09d75f99 100644 --- a/ereuse_devicehub/resources/action/views/snapshot.py +++ b/ereuse_devicehub/resources/action/views/snapshot.py @@ -164,10 +164,10 @@ class SnapshotView(SnapshotMixin): self.resource_def = resource_def self.tmp_snapshots = app.config['TMP_SNAPSHOTS'] self.path_snapshot = save_json(snapshot_json, self.tmp_snapshots, g.user.email) - self.get_uuid(snapshot_json.pop('debug', None)) self.version = snapshot_json.get('version') self.uuid = snapshot_json.get('uuid') self.sid = None + self.get_uuid(snapshot_json.pop('debug', None)) try: self.snapshot_json = resource_def.schema.load(snapshot_json)