mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Added counters in api
This commit is contained in:
@ -189,6 +189,12 @@ class Counter(models.Model):
|
||||
bl = Counter.get_barmen_list(counter_id)
|
||||
return bl[randrange(0, len(bl))]
|
||||
|
||||
def is_open(self):
|
||||
response = False
|
||||
if len(Counter.get_barmen_list(self.id)) > 0:
|
||||
response = True
|
||||
return response
|
||||
|
||||
class Refilling(models.Model):
|
||||
"""
|
||||
Handle the refilling
|
||||
|
Reference in New Issue
Block a user