Permalink
Browse files

fix(worker): Backport fix for OCA#58 to banch 7.0

  • Loading branch information...
agb80 committed Dec 22, 2016
1 parent aa0939e commit 26769c02188bc11f7f5a77aa1620634ed3f2e6a0
Showing with 2 additions and 2 deletions.
  1. +1 −1 connector/jobrunner/runner.py
  2. +1 −1 connector/queue/worker.py
@@ -236,7 +236,7 @@ def get_db_names(self):
else:
db_names = []
dbfilter = openerp.tools.config['dbfilter']
if dbfilter:
if dbfilter and '%d' not in dbfilter and '%h' not in dbfilter:
db_names = [d for d in db_names if re.match(dbfilter, d)]
return db_names
@@ -267,7 +267,7 @@ def available_db_names():
else:
db_names = []
dbfilter = config['dbfilter']
if dbfilter and db_names:
if dbfilter and '%d' not in dbfilter and '%h' not in dbfilter:
db_names = [d for d in db_names if re.match(dbfilter, d)]
available_db_names = []
for db_name in db_names:

0 comments on commit 26769c0

Please sign in to comment.