Browse Source

reformat

pull/38/head
Dashie der otter 3 months ago
parent
commit
cc89d71f51
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
2 changed files with 7 additions and 6 deletions
  1. 1
    0
      controllers/sound.py
  2. 6
    6
      migrations/versions/35_da6070b2ce4e_.py

+ 1
- 0
controllers/sound.py View File

@@ -188,6 +188,7 @@ def delete(username, soundslug):
188 188
     # Federate Delete
189 189
     # TODO: Test
190 190
     from tasks import post_to_outbox
191
+
191 192
     activity = sound.activity
192 193
     delete_activity = ap.Delete(actor=sound.user.actor[0], object=ap.Tombstone(id=activity.id).to_dict(embed=True))
193 194
     post_to_outbox(delete_activity)

+ 6
- 6
migrations/versions/35_da6070b2ce4e_.py View File

@@ -7,8 +7,8 @@ Create Date: 2019-03-27 07:02:44.840655
7 7
 """
8 8
 
9 9
 # revision identifiers, used by Alembic.
10
-revision = 'da6070b2ce4e'
11
-down_revision = 'c1aa4c6b9acd'
10
+revision = "da6070b2ce4e"
11
+down_revision = "c1aa4c6b9acd"
12 12
 
13 13
 from alembic import op  # noqa: E402
14 14
 import sqlalchemy as sa  # noqa: E402
@@ -16,13 +16,13 @@ import sqlalchemy as sa  # noqa: E402
16 16
 
17 17
 def upgrade():
18 18
     # ### commands auto generated by Alembic - please adjust! ###
19
-    op.add_column('sound', sa.Column('activity_id', sa.Integer(), nullable=True))
20
-    op.create_foreign_key(None, 'sound', 'activity', ['activity_id'], ['id'])
19
+    op.add_column("sound", sa.Column("activity_id", sa.Integer(), nullable=True))
20
+    op.create_foreign_key(None, "sound", "activity", ["activity_id"], ["id"])
21 21
     # ### end Alembic commands ###
22 22
 
23 23
 
24 24
 def downgrade():
25 25
     # ### commands auto generated by Alembic - please adjust! ###
26
-    op.drop_constraint(None, 'sound', type_='foreignkey')
27
-    op.drop_column('sound', 'activity_id')
26
+    op.drop_constraint(None, "sound", type_="foreignkey")
27
+    op.drop_column("sound", "activity_id")
28 28
     # ### end Alembic commands ###

Loading…
Cancel
Save