Skip to content

Commit

Permalink
editing conf files to read api version file
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed May 30, 2024
1 parent c4131e1 commit fefd660
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
16 changes: 8 additions & 8 deletions beacon/conf.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from datetime import date
import datetime
import glob
import os
import yaml

with open("beacon/api_version.yml") as api_version_file:
api_version = yaml.safe_load(api_version_file)

"""Beacon Configuration."""


#
# Beacon general info
#
beacon_id = 'org.ega-archive.beacon-ri-demo' # ID of the Beacon
beacon_name = 'Beacon Reference Implementation demo' # Name of the Beacon service
api_version = 'v2.0.0' # Version of the Beacon implementation
uri = 'https://beacon-apis-demo.ega-archive.org/api/'
beacon_id = 'org.ega-archive.gdi-spanish-beacon' # ID of the Beacon
beacon_name = 'GDI Spanish Beacon' # Name of the Beacon service
api_version = api_version['api_version'] # Version of the Beacon implementation
uri = 'https://beacon-spain.ega-archive.org/api/'

#
# Beacon granularity
Expand Down
14 changes: 10 additions & 4 deletions deploy/conf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import yaml

with open("beacon/api_version.yml") as api_version_file:
api_version = yaml.safe_load(api_version_file)

"""Beacon Configuration."""


#
# Beacon general info
#
beacon_id = 'org.ega-archive.beacon-ri-demo' # ID of the Beacon
beacon_name = 'Beacon Reference Implementation demo' # Name of the Beacon service
api_version = 'v2.0.0' # Version of the Beacon implementation
uri = 'https://beacon-apis-demo.ega-archive.org/api/'
beacon_id = 'org.ega-archive.gdi-spanish-beacon' # ID of the Beacon
beacon_name = 'GDI Spanish Beacon' # Name of the Beacon service
api_version = api_version['api_version'] # Version of the Beacon implementation
uri = 'https://beacon-spain.ega-archive.org/api/'

#
# Beacon granularity
Expand Down

0 comments on commit fefd660

Please sign in to comment.