Skip to content

Commit a254a3c

Browse files
authored
Merge pull request #773 from CitrineInformatics/PLA-9759-fix
PLA-9759 - Fixing wrong call on files API
2 parents 1603894 + b025b99 commit a254a3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/citrine/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.36.1'
1+
__version__ = '1.36.2'

src/citrine/resources/file_link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ def get(self,
342342
if isinstance(uid, str):
343343
# Assume it's the filename on platform;
344344
if version is None or isinstance(version, int):
345-
file = self._search_by_file_version_id(file_version_id=version)
346-
else: # We did our type checks earlier; version is an int or None
347345
file = self._search_by_file_name(dset_id=self.dataset_id,
348346
file_name=uid,
349347
file_version_number=version)
348+
else: # We did our type checks earlier; version is an UUID
349+
file = self._search_by_file_version_id(file_version_id=version)
350350
else: # We did our type checks earlier; uid is a UUID
351351
if isinstance(version, UUID):
352352
file = self._search_by_file_version_id(file_version_id=version)

0 commit comments

Comments
 (0)