Skip to content

Commit

Permalink
Modified upgrade_to_26 to not make a call to non-existant testing clo…
Browse files Browse the repository at this point in the history
…sure
  • Loading branch information
hkethi002 committed May 22, 2017
1 parent c847844 commit e37e9cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def upgrade_to_26_closure(job):
# Checks if the specific gear tag already exists for the job
for tag in job['tags']:
if tag == gear_name:
logging.info("Gear name tag already exists")
# logging.info("Gear name tag already exists")
return True
for tag in job['tags']:
if tag == gear_name:
Expand All @@ -989,10 +989,8 @@ def upgrade_to_26():
Add job tags back to the job document, and use a faster cursor-walking update method
"""
# cursor = config.db.jobs.find({'tags[1]': {'$exists': True}})
process_cursor(cursor, upgrade_to_26_closure)
cursor = config.db.jobs.find({})
process_cursor(cursor,upgrade_to_26_test_closure)
process_cursor(cursor, upgrade_to_26_closure)


def upgrade_to_27():
Expand Down

0 comments on commit e37e9cf

Please sign in to comment.