Added the restock_multiple command using iregex to query items (#24)

Removed previously added restock_multiple command and replaced icontains
with iregex in the restock command

Added the restock_multiple command using iregex to query items

Reviewed-on: https://git.etztech.xyz/ZeroHD/Geoffrey/pulls/24
doc_update
Ben Maurer 2020-08-12 02:14:28 +02:00 committed by ZeroHD
parent 2e1967cb5a
commit 1f61f400b4
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ def restock(item_name, shop_name=None, discord_uuid=None, mc_uuid=None):
owner = get_player(discord_uuid, mc_uuid)
shop = get_location(owner, shop_name, Shop)
items = ItemListing.objects.filter(item_name__iexact=item_name, shop=shop).all()
items = ItemListing.objects.filter(item_name__iregex=item_name, shop=shop).all()
if len(items) == 0:
raise ItemNotFound