Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Fix bug in get next available freezer location where box count was no…
Browse files Browse the repository at this point in the history
…t resetting when the end of a rack was encountered
  • Loading branch information
aaronstephenson committed Apr 28, 2020
1 parent a567012 commit 8f8f8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "liliservices",
"organization": "U.S. Geological Survey",
"description": "Web services for LILI (LIDE (Laboratory for Infectious Disease and the Environment) Information Management System)",
"version": "v1.2.0",
"version": "v1.2.1",
"status": "Production",

"permissions": {
Expand Down Expand Up @@ -47,7 +47,7 @@
},

"date": {
"metadataLastUpdated": "2020-023-11"
"metadataLastUpdated": "2020-04-28"
}
}
]
1 change: 1 addition & 0 deletions liliapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ def get_next_empty_box(self, last_spot):
else:
cur_box += 1
cur_rack += 1
cur_box = 1
# return None if no last spot was found or adding a rack will exceed the number of racks allowed in any freezer
return None

Expand Down

0 comments on commit 8f8f8bc

Please sign in to comment.