From 015c64a2acc40331b4b619efbb3a7b267db40a52 Mon Sep 17 00:00:00 2001 From: robertem <3456661+RandomGamer342@users.noreply.github.com> Date: Mon, 20 Feb 2017 12:49:47 +0000 Subject: [PATCH] Fixed bug preventing superfast mode from being set properly. --- text_interface/buymenu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text_interface/buymenu.py b/text_interface/buymenu.py index 6e53f95..3c857b8 100644 --- a/text_interface/buymenu.py +++ b/text_interface/buymenu.py @@ -93,9 +93,9 @@ When finished, write an empty line to confirm the purchase.\n''' self.add_thing_to_purchase(thing, num) def is_product(candidate): - return isinstance(candidate, Product) + return isinstance(candidate[0], Product) - if len(initial_contents) > 0 and all(map(is_product, initial_contents[0])): + if len(initial_contents) > 0 and all(map(is_product, initial_contents)): self.superfast_mode = True print '***********************************************' print '****** Buy menu is in SUPERFASTmode[tm]! ******'