Skip to content

Commit bcaafc5

Browse files
Ken LippoldKen Lippold
authored andcommitted
Updated HydroShare archival to use DataArchive model
1 parent ebfad3e commit bcaafc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

etl/services/hydroshare_archival.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def get_hydroshare_thing_archive(
2929
uid: uuid.UUID,
3030
):
3131
thing = thing_service.get_thing_for_action(user=user, uid=uid, action="view")
32-
etl_system = self.get_hydroshare_archival_system()
32+
orchestration_system = self.get_hydroshare_archival_system()
3333

3434
return DataArchive.objects.filter(
35-
etl_system=etl_system,
35+
orchestration_system=orchestration_system,
3636
workspace=thing.workspace,
37-
loader_configuration_settings__thingId=str(thing.id),
37+
settings__thingId=str(thing.id),
3838
).first()
3939

4040
@staticmethod
@@ -293,9 +293,9 @@ def run(self, user: Optional[User], uid: uuid.UUID, make_public=False):
293293

294294
return {
295295
"thing_id": str(uid),
296-
"link": str(thing_archive.loader_configuration_settings["link"]),
297-
"path": thing_archive.loader_configuration_settings["path"],
298-
"datastreamIds": thing_archive.loader_configuration_settings[
296+
"link": str(thing_archive.settings["link"]),
297+
"path": thing_archive.settings["path"],
298+
"datastreamIds": thing_archive.settings[
299299
"datastreamIds"
300300
],
301301
}

0 commit comments

Comments
 (0)