Limited the results of the inventory of a shop for the ?info command.
parent
ede95f5d1f
commit
4911358dc3
|
@ -251,7 +251,7 @@ class Shop(Location):
|
|||
|
||||
def inv_to_str(self):
|
||||
|
||||
if len(self.inventory.all()) != 0:
|
||||
if len(self.inventory.limit(25).all()) != 0:
|
||||
inv = '\n**Inventory**:'
|
||||
str_format = '{}\n{}'
|
||||
|
||||
|
|
Loading…
Reference in New Issue