Skip to content
Snippets Groups Projects
Commit 40e20f57 authored by Saket Agrahari's avatar Saket Agrahari
Browse files

change log and admin access

parent 74c7f8fd
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file. 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 ## [0.46] - 2024-01-26
- COMP-288: Mass data download - COMP-288: Mass data download
......
import logging import logging
from typing import List, Optional, Dict, Any, Sequence 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, \ from compendium_v2.db.presentation_models import AlienWave, BudgetEntry, Capacity, CentralProcurement, \
CertificateProviders, \ CertificateProviders, \
...@@ -22,6 +23,7 @@ logger = logging.getLogger(__name__) ...@@ -22,6 +23,7 @@ logger = logging.getLogger(__name__)
@routes.route('/', methods=['GET']) @routes.route('/', methods=['GET'])
@common.require_accepts_json @common.require_accepts_json
@admin_required
def fetch_and_combine_data() -> Sequence[Optional[Dict[str, Any]]]: def fetch_and_combine_data() -> Sequence[Optional[Dict[str, Any]]]:
result_set: List[Optional[Dict[str, Any]]] = [] result_set: List[Optional[Dict[str, Any]]] = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment