Skip to content

Commit 2745144

Browse files
committed
handle archived payloads
1 parent 76c0b9b commit 2745144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

glouton/commands/download/archiveDownloadCommand.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
class ArchiveDownloadCommand(DownloadObservationCommand):
1010
def __init__(self, params, observation, modules_commands):
1111
DownloadObservationCommand.__init__(self, params, observation, modules_commands)
12-
self.__json_id = "archive_url"
12+
self.__json_id = "payload"
13+
if observation['archived'] is True:
14+
self.__json_id = "archive_url"
1315

1416
def download(self):
1517
url = self.observation[self.__json_id]

0 commit comments

Comments
 (0)