Skip to content

Commit

Permalink
Fix URL bug in create_item_links
Browse files Browse the repository at this point in the history
  • Loading branch information
jllong-usgs committed Oct 31, 2017
1 parent e2cb81e commit ee24482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysb/SbSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ def create_item_link(self, from_item_id, to_item_id, link_type_id, reverse=False
if reverse:
itemLinkJson['reverseRelationship'] = True

ret = self._session.post('%s%s' % (self._base_item_link_url, self._base_sb_url), data=json.dumps(itemLinkJson))
ret = self._session.post('%s' % (self._base_item_link_url), data=json.dumps(itemLinkJson))
return self._get_json(ret)

def create_related_item_link(self, from_item_id, to_item_id):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from distutils.core import setup
setup(name='pysb',
version='1.5.6',
version='1.5.7',
packages=['pysb',],
description="Python ScienceBase Utilities",
author="ScienceBase Development Team",
Expand Down

0 comments on commit ee24482

Please sign in to comment.