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!
This commit is contained in:
Christopher Allan Webber 2012-03-18 12:07:13 -05:00
parent 7bf819a995
commit 54477b4d76

View File

@ -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)