Commit 5376fcce authored by Yannick DAYER's avatar Yannick DAYER

[py] Missing import for sqlalchemy (and_)

parent b56623bc
Pipeline #35984 passed with stage
in 8 minutes and 2 seconds
......@@ -23,6 +23,8 @@ import os
from .models import *
from sqlalchemy import and_
def nodot(item):
"""Can be used to ignore hidden files, starting with the . character."""
return item[0] != '.'
......@@ -791,7 +793,12 @@ def create_tables(args):
from bob.db.base.utils import create_engine_try_nolock
engine = create_engine_try_nolock(args.type, args.files[0], echo=(args.verbose > 2))
if not args.verbose:
verbose_level = 0
else:
verbose_level = args.verbose
engine = create_engine_try_nolock(args.type, args.files[0], echo=(verbose_level > 2))
Base.metadata.create_all(engine)
# Driver API
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment