Skip to content

Commit

Permalink
Fix current_minor_version failure on Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
smallsco committed Jun 25, 2024
1 parent d1cd11a commit cc1e230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s4/clarity/lims.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ def current_minor_version(self):
path = urlparse.urlparse(self.root_uri).path
current_major_version = [x for x in path.split("/") if x][-1]
root = self.request("get", self.root_uri + "/..")
version = root.findall(f"version[@major='{current_major_version}']")[0]
xpath = "version[@major='%s']" % current_major_version
version = root.findall(xpath)[0]
return version.get("minor")

def raw_request(self, method, uri, **kwargs):
Expand Down

0 comments on commit cc1e230

Please sign in to comment.