mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Display bar list with "openness"
This commit is contained in:
@ -184,10 +184,7 @@ class Counter(models.Model):
|
||||
return bl[random.randrange(0, len(bl))]
|
||||
|
||||
def is_open(self):
|
||||
response = False
|
||||
if len(self.get_barmen_list()) > 0:
|
||||
response = True
|
||||
return response
|
||||
return len(self.get_barmen_list()) > 0:
|
||||
|
||||
def barman_list(self):
|
||||
return [b.id for b in self.get_barmen_list()]
|
||||
|
Reference in New Issue
Block a user