Skip to content

Commit

Permalink
bind OpenAPI server info to pycsw version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored and kalxas committed Sep 21, 2023
1 parent eec0fce commit aaaaa3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pycsw/ogc/api/oapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from copy import deepcopy
import logging

from pycsw import __version__
from pycsw.ogc.api.util import yaml_load

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -194,7 +195,7 @@ def gen_oapi(config, oapi_filepath):
'name': config.get('metadata:main', 'contact_name'),
'url': config.get('metadata:main', 'contact_url')
},
'version': '1.0',
'version': __version__,
'title': config.get('metadata:main', 'identification_title'),
'description': config.get('metadata:main', 'identification_abstract')
}
Expand Down

0 comments on commit aaaaa3f

Please sign in to comment.