-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script no longer downloads files that are already downloaded unless overwritten is set to true. Fixed renaming. OnlyFans decided to let creators send posts to messages which would cause errors such as the FileNotFoundError. I added the "linked" column in the database. Any file that is linked will have "linked" in it's filename.
- Loading branch information
1 parent
9050628
commit 5bafbd4
Showing
11 changed files
with
152 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
database/databases/messages/alembic/versions/aeb9fe314556_content.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""content | ||
Revision ID: aeb9fe314556 | ||
Revises: d0118d8ec0b4 | ||
Create Date: 2021-02-14 19:56:59.175268 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'aeb9fe314556' | ||
down_revision = 'd0118d8ec0b4' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('linked', sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.drop_column('linked') | ||
|
||
# ### end Alembic commands ### |
Binary file not shown.
32 changes: 32 additions & 0 deletions
32
database/databases/posts/alembic/versions/6b1b10eb67de_content.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""content | ||
Revision ID: 6b1b10eb67de | ||
Revises: 5b4bea08c27f | ||
Create Date: 2021-02-14 19:56:56.267261 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '6b1b10eb67de' | ||
down_revision = '5b4bea08c27f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('linked', sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.drop_column('linked') | ||
|
||
# ### end Alembic commands ### |
Binary file not shown.
32 changes: 32 additions & 0 deletions
32
database/databases/stories/alembic/versions/ebc3f4bb0782_content.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""content | ||
Revision ID: ebc3f4bb0782 | ||
Revises: 29f675c35eee | ||
Create Date: 2021-02-14 19:56:54.040372 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'ebc3f4bb0782' | ||
down_revision = '29f675c35eee' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('linked', sa.String(), nullable=True)) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('medias', schema=None) as batch_op: | ||
batch_op.drop_column('linked') | ||
|
||
# ### end Alembic commands ### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters