Skip to content

Commit

Permalink
pr worker updates to utility table name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-heim committed Sep 20, 2019
1 parent 211acad commit 69ba51d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workers/pull_request_worker/pull_request_worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, config, task=None):
'pull_request_message_ref', 'pull_request_meta', 'pull_request_repo',
'pull_request_reviewers', 'pull_request_teams', 'message'])

helper_metadata.reflect(self.helper_db, only=['gh_worker_history', 'gh_worker_job'])
helper_metadata.reflect(self.helper_db, only=['worker_history', 'worker_job'])

Base = automap_base(metadata=metadata)
HelperBase = automap_base(metadata=helper_metadata)
Expand All @@ -129,8 +129,8 @@ def __init__(self, config, task=None):
self.pull_request_teams_table = Base.classes.pull_request_teams.__table__
self.message_table = Base.classes.message.__table__

self.history_table = HelperBase.classes.gh_worker_history.__table__
self.job_table = HelperBase.classes.gh_worker_job.__table__
self.history_table = HelperBase.classes.worker_history.__table__
self.job_table = HelperBase.classes.worker_job.__table__

logger.info("Querying starting ids info...")

Expand Down

0 comments on commit 69ba51d

Please sign in to comment.