From 40e20f57c3bd150af820db2026f73d54e835100e Mon Sep 17 00:00:00 2001 From: "saket.agrahari" <saket.agrahari@geant.org> Date: Tue, 30 Jan 2024 02:22:32 +0000 Subject: [PATCH] change log and admin access --- Changelog.md | 3 +++ compendium_v2/routes/data_download.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Changelog.md b/Changelog.md index e4a3140f..241519c3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. +## [0.47] - 2024-01-30 +- COMP-288: Mass data download network and other models + ## [0.46] - 2024-01-26 - COMP-288: Mass data download diff --git a/compendium_v2/routes/data_download.py b/compendium_v2/routes/data_download.py index a3ffc98f..2d1c5e89 100644 --- a/compendium_v2/routes/data_download.py +++ b/compendium_v2/routes/data_download.py @@ -1,5 +1,6 @@ import logging from typing import List, Optional, Dict, Any, Sequence +from compendium_v2.auth.session_management import admin_required from compendium_v2.db.presentation_models import AlienWave, BudgetEntry, Capacity, CentralProcurement, \ CertificateProviders, \ @@ -22,6 +23,7 @@ logger = logging.getLogger(__name__) @routes.route('/', methods=['GET']) @common.require_accepts_json +@admin_required def fetch_and_combine_data() -> Sequence[Optional[Dict[str, Any]]]: result_set: List[Optional[Dict[str, Any]]] = [] -- GitLab