fix order of vars declared

This commit is contained in:
Cayo Puigdefabregas 2022-06-13 17:59:54 +02:00
parent 3e3a2fbd34
commit 660e238468
1 changed files with 1 additions and 1 deletions

View File

@ -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)