diff --git a/server/szurubooru/migrations/versions/1cd4c7b22846_change_flags_column_to_string.py b/server/szurubooru/migrations/versions/1cd4c7b22846_change_flags_column_to_string.py index 04e0764..b450b1d 100644 --- a/server/szurubooru/migrations/versions/1cd4c7b22846_change_flags_column_to_string.py +++ b/server/szurubooru/migrations/versions/1cd4c7b22846_change_flags_column_to_string.py @@ -27,7 +27,7 @@ def upgrade(): sa.Column('oldflags', sa.PickleType(), nullable=True), ) for row in conn.execute(posts.select()): - newflag = ','.join(row.oldflags) + newflag = ','.join(row.oldflags) if row.oldflags else '' conn.execute( # pylint: disable=no-value-for-parameter posts.update().where(