From d09fa3d8ba16e2004fd964918f56863561815188 Mon Sep 17 00:00:00 2001 From: Jake Rosenberg Date: Mon, 29 Apr 2024 11:19:28 -0500 Subject: [PATCH] fix regressions in published views --- designsafe/apps/api/urls.py | 2 +- designsafe/apps/data/views/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/designsafe/apps/api/urls.py b/designsafe/apps/api/urls.py index 11bdf4f5cc..7af0b1dc91 100644 --- a/designsafe/apps/api/urls.py +++ b/designsafe/apps/api/urls.py @@ -14,7 +14,7 @@ namespace='ds_projects_api')), url(r'^datafiles/', include('designsafe.apps.api.datafiles.urls')), - # url(r'^publications/', include('designsafe.apps.api.publications.urls')), + url(r'^publications/', include('designsafe.apps.api.publications.urls')), url(r'^filemeta/', include('designsafe.apps.api.filemeta.urls')), diff --git a/designsafe/apps/data/views/base.py b/designsafe/apps/data/views/base.py index e55406bfb0..c46ce67a88 100644 --- a/designsafe/apps/data/views/base.py +++ b/designsafe/apps/data/views/base.py @@ -235,8 +235,8 @@ def get_context_data(self, **kwargs): context['simulations'] = getattr(pub, 'simulations', []) context['hybrid_simulations'] = getattr(pub, 'hybrid_simulations',[]) - proj = ProjectsManager(service_account()).get_project_by_id(pub.projectId) try: + proj = ProjectsManager(service_account()).get_project_by_id(pub.projectId) context['dc_json'] = json.dumps(proj.to_dataset_json()) except Exception: # If we can't generate DataCite JSON, render the page without meta tags.