Skip to content
Snippets Groups Projects
Commit 904d550b authored by Carsten Hinz's avatar Carsten Hinz
Browse files

added debug output

parent 57f4c757
No related branches found
No related tags found
No related merge requests found
import logging
from abc import ABC, abstractmethod
from pandas import DataFrame
from pandas.core.groupby import DataFrameGroupBy
......@@ -8,6 +8,7 @@ from time import sleep
import requests
logger = logging.getLogger(__name__)
class contributors_manager(ABC):
"""base class to handle creation of contributors metadata field.
......@@ -87,6 +88,7 @@ class contributions_manager_as_service(contributors_manager):
"""
This adds the timeseries IDs to the database and provides a get endpoint for the contributors
"""
logger.debug(f"Registering {len(self.contributors)} timeseries IDs.")
response = requests.post( f"{self.endpoint}{self.register_path}/{self.requestID}", json={"timeseriesids": list(self.contributors)}, headers=self.headers )
response.raise_for_status()
return f"Call: {self.endpoint}{self.database_request_path}/{self.requestID} to obtain a list of contributors."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment