Skip to content

Commit

Permalink
Quick fix for int issue
Browse files Browse the repository at this point in the history
Close #155
  • Loading branch information
LeMyst committed May 25, 2021
1 parent 1393d6f commit f98deec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikibaseintegrator/wbi_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def __select_item(self):
core_props = self.core_props
if property_nr in core_props:
tmp_qids = set()
query = statement.sparql_query.format(wb_url=self.wikibase_url, pid=property_nr, value=statement.get_sparql_value().replace("'", r"\'"))
query = statement.sparql_query.format(wb_url=self.wikibase_url, pid=property_nr, value=str(statement.get_sparql_value()).replace("'", r"\'"))
results = wbi_functions.execute_sparql_query(query=query, endpoint=self.sparql_endpoint_url, debug=self.debug)

for i in results['results']['bindings']:
Expand Down

0 comments on commit f98deec

Please sign in to comment.