mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
Remove refs to ToolShedRepository.metadata in scripts/
This commit is contained in:
@@ -16,9 +16,9 @@ def main(opts, session, model):
|
||||
Find all tool shed repositories with the bad path and update with the correct path.
|
||||
'''
|
||||
for row in session.query(model.ToolShedRepository).all():
|
||||
if 'shed_config_filename' in row.metadata:
|
||||
if row.metadata['shed_config_filename'] == opts.bad_filename:
|
||||
row.metadata['shed_config_filename'] = opts.good_filename
|
||||
if 'shed_config_filename' in row.metadata_:
|
||||
if row.metadata_['shed_config_filename'] == opts.bad_filename:
|
||||
row.metadata_['shed_config_filename'] = opts.good_filename
|
||||
session.add(row)
|
||||
session.flush()
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user