Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting to string on import. Refs #104 #105

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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