Missing perens
authorJessica Tallon <tsyesika@tsyesika.se>
Mon, 29 Feb 2016 14:26:05 +0000 (14:26 +0000)
committerJessica Tallon <tsyesika@tsyesika.se>
Mon, 29 Feb 2016 14:26:05 +0000 (14:26 +0000)
mediagoblin/db/migrations/versions/4066b9f8b84a_use_comment_link_ids_notifications.py

index dd0fb883c07b13ddad4f084a593c2279ae7a31b0..2e9c75134f762480cbc4e041e0b3b2c531439775 100644 (file)
@@ -40,7 +40,8 @@ def upgrade():
         # rather than the ID of TextComment object.
         db.execute(notification_table.update().values(
             object_id=comment_link.id
-        
+        ))
         # Find the GMR for this comment or make one if one doesn't exist.
         gmr = db.execute(gmr_table.select().where(and_(
             gmr_table.c.obj_pk == comment_link.id,
@@ -88,6 +89,7 @@ def downgrade():
         # Update the notification with the TextComment (i.e. the comment object)
         db.execute(notification_table.update().values(
             object_id=comment_link.comment_id
+        ))
         # Find the GMR for the TextComment
         gmr = db.execute(gmr_table.select().where(and_(
             gmr_table.c.obj_pk == comment_link.id,