Browse Source

reformat

pull/38/head
Dashie der otter 5 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):
# Federate Delete
# TODO: Test
from tasks import post_to_outbox

activity = sound.activity
delete_activity = ap.Delete(actor=sound.user.actor[0], object=ap.Tombstone(id=activity.id).to_dict(embed=True))
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
"""

# revision identifiers, used by Alembic.
revision = 'da6070b2ce4e'
down_revision = 'c1aa4c6b9acd'
revision = "da6070b2ce4e"
down_revision = "c1aa4c6b9acd"

from alembic import op # noqa: E402
import sqlalchemy as sa # noqa: E402
@@ -16,13 +16,13 @@ import sqlalchemy as sa # noqa: E402

def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('sound', sa.Column('activity_id', sa.Integer(), nullable=True))
op.create_foreign_key(None, 'sound', 'activity', ['activity_id'], ['id'])
op.add_column("sound", sa.Column("activity_id", sa.Integer(), nullable=True))
op.create_foreign_key(None, "sound", "activity", ["activity_id"], ["id"])
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'sound', type_='foreignkey')
op.drop_column('sound', 'activity_id')
op.drop_constraint(None, "sound", type_="foreignkey")
op.drop_column("sound", "activity_id")
# ### end Alembic commands ###

Loading…
Cancel
Save