diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-03-18 12:07:13 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2012-03-18 12:07:41 -0500 |
commit | 54477b4d76ca983e2e884fea9c0975c7e63fdc1d (patch) | |
tree | 9fd64ae2a24214896b30e4cef581ef4e2327831f /mediagoblin/db/mongo/migrations.py | |
parent | 7bf819a99579a3aec2c539305c08759e2c0b39e3 (diff) | |
download | mediagoblin-54477b4d76ca983e2e884fea9c0975c7e63fdc1d.tar.lz mediagoblin-54477b4d76ca983e2e884fea9c0975c7e63fdc1d.tar.xz mediagoblin-54477b4d76ca983e2e884fea9c0975c7e63fdc1d.zip |
Removing print statements from convert_gps_media_data migration
Kind of useful to see but... I don't think they're needed, and I'm not
super comfortable with print statements being in migrations. Seems
semi bloated!
Diffstat (limited to 'mediagoblin/db/mongo/migrations.py')
-rw-r--r-- | mediagoblin/db/mongo/migrations.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mediagoblin/db/mongo/migrations.py b/mediagoblin/db/mongo/migrations.py index 23cf5e45..1d33460e 100644 --- a/mediagoblin/db/mongo/migrations.py +++ b/mediagoblin/db/mongo/migrations.py @@ -165,9 +165,7 @@ def convert_gps_media_data(database): {'media_data.gps': {'$exists': True}}) for document in target: - print document['_id'], "old:", document['media_data'] for key, value in document['media_data']['gps'].iteritems(): document['media_data']['gps_' + key] = value del document['media_data']['gps'] - print document['_id'], "new:", document['media_data'] collection.save(document) |