Skip to content

Commit

Permalink
Fix bug dropping facets in replace_file when file didn't exist on item
Browse files Browse the repository at this point in the history
  • Loading branch information
jllong-usgs committed Jan 31, 2019
1 parent 4827adb commit a36b4be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,3 +342,6 @@ Example Usage
sb.logout()
````

# Developer Notes

To publish to pypi, follow the instructions [here](https://packaging.python.org/tutorials/packaging-projects/)
2 changes: 1 addition & 1 deletion sciencebasepy/SbSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def replace_file(self, filename, item):
f = self._replace_file(filename, f)
new_files.append(f)
facet['files'] = new_files
new_facets.append(facet)
new_facets.append(facet)
item['facets'] = new_facets
self.update_item(item)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()

setuptools.setup(name='sciencebasepy',
version='1.6.1',
version='1.6.3',
author="USGS ScienceBase Development Team",
author_email="[email protected]",
description="Python ScienceBase Utilities",
Expand Down

0 comments on commit a36b4be

Please sign in to comment.