From 57e3feb4142563eafbe0ccb961fac030fbdc188d Mon Sep 17 00:00:00 2001 From: Qwann Date: Thu, 9 Aug 2018 17:56:54 +0200 Subject: [PATCH] it is possible not to loose an item --- equipment/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equipment/models.py b/equipment/models.py index a7625be..85d6284 100644 --- a/equipment/models.py +++ b/equipment/models.py @@ -98,7 +98,7 @@ class Equipment(EventSpecificMixin, models.Model): ) def ids_aviable(self): - res = map(lambda x: x+1, range(self.stock)) + res = list(map(lambda x: x+1, range(self.stock))) for lost in self.losts.all(): res = [ x for x in res