-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1894 from OpenEnergyPlatform/feature-1890-http-ap…
…i-schenario-bundle-scenario-dataset Feature-1890-http-api-schenario-bundle-scenario-dataset
- Loading branch information
Showing
18 changed files
with
618 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,6 @@ venv*/ | |
apache* | ||
/oep-django-5 | ||
|
||
|
||
.DS_Store | ||
|
||
# Deployment files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" | ||
Collection of utility functions for the API used to define various action | ||
like processing steps. | ||
""" | ||
|
||
from oekg.sparqlModels import DatasetConfig | ||
|
||
|
||
def get_dataset_configs(validated_data) -> list[DatasetConfig]: | ||
"""Converts validated serializer data into a list of DatasetConfig objects.""" | ||
return [ | ||
DatasetConfig.from_serializer_data(validated_data, dataset_entry) | ||
for dataset_entry in validated_data["datasets"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.