Commit 82b88b60 by rakesh.pv

factory v2

parent 1d5a5deb
......@@ -53,12 +53,12 @@ class TradingApp:
return self.assets
@staticmethod
def create_object(x):
if x == 1:
def create_object(sell_option):
if sell_option == 1:
return SellAll()
if x == 2:
if sell_option == 2:
return SellHalf()
if x == 3:
if sell_option == 3:
return SellLittle()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment