Removing print statements from convert_gps_media_data migration
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 18 Mar 2012 17:07:13 +0000 (12:07 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 18 Mar 2012 17:07:41 +0000 (12:07 -0500)
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!

mediagoblin/db/mongo/migrations.py

index 23cf5e45fb0ae937c0c20b91dda9e1522151fafa..1d33460ea00ad15e72e7b033da09934b02217e9f 100644 (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)