Skip to content

Commit 5529330

Browse files
committed
fix save command
1 parent 88eb246 commit 5529330

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

coderdojochi/models/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ def save(self, *args, **kwargs):
272272
if self.mentor_capacity is None:
273273
self.mentor_capacity = int(self.capacity / 2)
274274

275-
self.mentor_capacity = max(self.mentor_capacity or 0, 0)
275+
self.mentor_capacity = self.mentor_capacity or 0
276276

277277
# Capacity check
278-
self.capacity = max(self.capacity or 0, 0)
278+
self.capacity = self.capacity or 0
279279

280280
super(Session, self).save(*args, **kwargs)
281281

0 commit comments

Comments
 (0)