Skip to content

Commit

Permalink
Casting to string on import. Refs #104 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenedaele authored Apr 28, 2023
1 parent 23df698 commit bc9d9f3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ keywords:
- python
- sqlalchemy
license: MIT
version: 2.1.0
date-released: "2023-03-30"
version: 2.1.1
date-released: "2023-04-28"
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.1.1 (2023-04-28)
------------------

* Fixed an issue with casting ids to string during import. (#104)

2.1.0 (2023-03-30)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# The short X(.Y version.
version = '2.0'
# The full version, including alpha/beta/rc tags.
release = '2.1.0'
release = '2.1.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='skosprovider_sqlalchemy',
version='2.1.0',
version='2.1.1',
description='A sqlAlchemy implementation of skosprovider.',
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
Expand Down
4 changes: 2 additions & 2 deletions skosprovider_sqlalchemy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ def import_provider(provider: VocabularyProvider, session: Session, conceptschem
log.warning(c)
if isinstance(c, Concept):
cm = ConceptModel(
concept_id=c.id,
concept_id=str(c.id),
uri=c.uri,
conceptscheme=conceptscheme
)
elif isinstance(c, Collection):
cm = CollectionModel(
concept_id=c.id,
concept_id=str(c.id),
uri=c.uri,
conceptscheme=conceptscheme
)
Expand Down

0 comments on commit bc9d9f3

Please sign in to comment.