From 4df4f997878d0e842cc79da3098edaaf8fe0886d Mon Sep 17 00:00:00 2001 From: ifindpokemons Date: Fri, 28 Apr 2017 02:17:20 +1000 Subject: [PATCH] fix -os fixed the sucky error where a -os instance was requiring -ac -cpac and -ivac even tho it will never use them...... :D --- pogom/models.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pogom/models.py b/pogom/models.py index 3489eabb4b..f284c014fd 100644 --- a/pogom/models.py +++ b/pogom/models.py @@ -50,19 +50,19 @@ flaskDb = FlaskDB() cache = TTLCache(maxsize=100, ttl=60 * 5) -if len(args.cp_accountcsv): - cp_account_queue = Queue() -if len(args.iv_accountcsv): - iv_account_queue = Queue() - -if len(args.cp_accountcsv) > 0: - for i, account in enumerate(args.cp_accountcsv): - cp_account_queue.put(account) -if len(args.iv_accountcsv) > 0: - # print(args.iv_accountcsv) - for i, account in enumerate(args.iv_accountcsv): - # print(account) - iv_account_queue.put(account) +if not args.only_server: + if len(args.cp_accountcsv): + cp_account_queue = Queue() + if len(args.iv_accountcsv): + iv_account_queue = Queue() + if len(args.cp_accountcsv) > 0: + for i, account in enumerate(args.cp_accountcsv): + cp_account_queue.put(account) + if len(args.iv_accountcsv) > 0: + # print(args.iv_accountcsv) + for i, account in enumerate(args.iv_accountcsv): + # print(account) + iv_account_queue.put(account) db_schema_version = 20