Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.db.atvskeystroke
Commits
60964c8f
Commit
60964c8f
authored
Jan 18, 2016
by
André Anjos
💬
Browse files
[create] Small fix to import
parent
f40f87bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/db/atvskeystroke/create.py
View file @
60964c8f
...
...
@@ -112,7 +112,7 @@ def add_protocols(session, verbose):
def
create_tables
(
args
):
"""Creates all necessary tables (only to be used at the first time)"""
from
bob.db.utils
import
create_engine_try_nolock
from
bob.db.
base.
utils
import
create_engine_try_nolock
engine
=
create_engine_try_nolock
(
args
.
type
,
args
.
files
[
0
],
echo
=
(
args
.
verbose
>
2
))
Base
.
metadata
.
create_all
(
engine
)
...
...
@@ -122,7 +122,7 @@ def create_tables(args):
def
create
(
args
):
"""Creates or re-creates this database"""
from
bob.db.utils
import
session_try_nolock
from
bob.db.
base.
utils
import
session_try_nolock
dbfile
=
args
.
files
[
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment