Skip to content

Commit

Permalink
Merge pull request #16 from MLDSAI/feat/task_description
Browse files Browse the repository at this point in the history
add Recording.task_description; recording.py types and documentation
  • Loading branch information
abrichr authored Apr 17, 2023
2 parents 93bfdf9 + 0299a05 commit 0325fc3
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 30 deletions.
32 changes: 32 additions & 0 deletions alembic/versions/5139d7df38f6_add_recording_task_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"""add Recording.task_description
Revision ID: 5139d7df38f6
Revises: b206c80f7640
Create Date: 2023-04-17 13:28:07.525123
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '5139d7df38f6'
down_revision = 'b206c80f7640'
branch_labels = None
depends_on = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('recording', schema=None) as batch_op:
batch_op.add_column(sa.Column('task_description', sa.String(), nullable=True))

# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('recording', schema=None) as batch_op:
batch_op.drop_column('task_description')

# ### end Alembic commands ###
1 change: 1 addition & 0 deletions puterbot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Recording(Base):
double_click_interval_seconds = sa.Column(sa.Numeric(asdecimal=False))
double_click_distance_pixels = sa.Column(sa.Numeric(asdecimal=False))
platform = sa.Column(sa.String)
task_description = sa.Column(sa.String)


class InputEvent(Base):
Expand Down
Loading

0 comments on commit 0325fc3

Please sign in to comment.