Display bar list with "openness"

This commit is contained in:
Skia
2016-09-04 14:17:49 +02:00
parent c62d3f4f4a
commit 25dea832be
4 changed files with 23 additions and 6 deletions

View File

@ -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()]