Skip to content

Commit

Permalink
Fix link in ROCrate to users
Browse files Browse the repository at this point in the history
The link in ROCrate now points to `users` instead of `user`
  • Loading branch information
antony-wilson authored Jul 13, 2023
1 parent 5f24727 commit 598dc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_management/rocrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def _get_code_run(crate_data_product, crate, code_run, registry_url):
user_authors = models.UserAuthor.objects.filter(user=code_run.updated_by)

if len(user_authors) == 0:
agent_id = f"{registry_url}api/user/{code_run.updated_by.id}"
agent_id = f"{registry_url}api/users/{code_run.updated_by.id}"
crate.add(
Person(
crate, agent_id, properties={"name": code_run.updated_by.full_name()}
Expand Down

0 comments on commit 598dc48

Please sign in to comment.