Show More
@@ -67,12 +67,11 b' class DbManage(object):' | |||||
67 | self.db_exists = False |
|
67 | self.db_exists = False | |
68 | self.cli_args = cli_args |
|
68 | self.cli_args = cli_args | |
69 | self.init_db() |
|
69 | self.init_db() | |
70 | global ask_ok |
|
|||
71 |
|
70 | |||
72 |
|
|
71 | force_ask = self.cli_args.get('force_ask') | |
73 | ask_ok = lambda *args, **kwargs: True |
|
72 | if force_ask is not None: | |
74 | elif not self.cli_args.get('force_ask'): |
|
73 | global ask_ok | |
75 |
ask_ok = lambda *args, **kwargs: |
|
74 | ask_ok = lambda *args, **kwargs: force_ask | |
76 |
|
75 | |||
77 | def init_db(self): |
|
76 | def init_db(self): | |
78 | engine = create_engine(self.dburi, echo=self.log_sql) |
|
77 | engine = create_engine(self.dburi, echo=self.log_sql) |
General Comments 0
You need to be logged in to leave comments.
Login now