init
This commit is contained in:
@@ -30,7 +30,8 @@ class OrderChecker:
|
|||||||
return
|
return
|
||||||
|
|
||||||
def exist(self, stock_code):
|
def exist(self, stock_code):
|
||||||
if self.order_df.loc[self.order_df["stock_code"] == stock_code] is None:
|
tmp = self.order_df.loc[self.order_df["stock_code"] == stock_code]
|
||||||
|
if tmp is None or len(tmp) == 0:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user