From 227cd7fd9ca0497c236a16bacd03c1df64e29dd1 Mon Sep 17 00:00:00 2001 From: yutiansut Date: Thu, 25 Jul 2019 00:05:21 +0800 Subject: [PATCH 1/3] # --- QUANTAXIS/QAARP/QAUser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QUANTAXIS/QAARP/QAUser.py b/QUANTAXIS/QAARP/QAUser.py index 1f2abbdf7..84cea0b01 100755 --- a/QUANTAXIS/QAARP/QAUser.py +++ b/QUANTAXIS/QAARP/QAUser.py @@ -394,7 +394,7 @@ def get_portfolio(self, portfolio_cookie: str): ''' # return self.portfolio_list[portfolio] # fix here use cookie as key to find value in dict - return QA.QA_Portfolio(user_cookie=self.user_cookie, portfolio_cookie= portfolio_cookie) + return QA_Portfolio(user_cookie=self.user_cookie, portfolio_cookie= portfolio_cookie) def generate_simpleaccount(self): """make a simple account with a easier way From 3b470b3e44737d2a5b3860a1a189ce0ffa29efcd Mon Sep 17 00:00:00 2001 From: yutiansut Date: Thu, 25 Jul 2019 00:16:29 +0800 Subject: [PATCH 2/3] # --- QUANTAXIS/QAARP/QAUser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QUANTAXIS/QAARP/QAUser.py b/QUANTAXIS/QAARP/QAUser.py index 84cea0b01..c70daa254 100755 --- a/QUANTAXIS/QAARP/QAUser.py +++ b/QUANTAXIS/QAARP/QAUser.py @@ -560,7 +560,7 @@ def reload(self, message): self.password = message.get('password') self.user_cookie = message.get('user_cookie') # - self.portfolio_list = [ + self.portfolio_list = list(set([ item['portfolio_cookie'] for item in DATABASE.portfolio.find( {'user_cookie': self.user_cookie}, { @@ -568,7 +568,7 @@ def reload(self, message): '_id': 0 } ) - ] + ])) # portfolio_list = message.get('portfolio_list') # if len(portfolio_list) > 0: From 1f083624191c16048b7b4570aeead7ef79d02a23 Mon Sep 17 00:00:00 2001 From: yutiansut Date: Thu, 25 Jul 2019 00:26:56 +0800 Subject: [PATCH 3/3] # --- QUANTAXIS/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QUANTAXIS/__init__.py b/QUANTAXIS/__init__.py index 1ea25bf78..156c0cc3f 100755 --- a/QUANTAXIS/__init__.py +++ b/QUANTAXIS/__init__.py @@ -31,7 +31,7 @@ 2017/4/8 """ -__version__ = '1.5.4' +__version__ = '1.5.5' __author__ = 'yutiansut' import argparse