-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
12,639 additions
and
293 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
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 |
---|---|---|
|
@@ -29,9 +29,9 @@ Run the following commands to bootstrap your environment :: | |
pip install wheel | ||
pip install -r requirements/dev.txt | ||
npm install | ||
npm run build | ||
export FLASK_APP=$(pwd)/autoapp.py | ||
export FLASK_DEBUG=1 | ||
npm run build | ||
flask db upgrade | ||
flask create-user --email [email protected] -p password --is-admin --is-active | ||
npm start # run webpack dev server and flask server using concurrently | ||
|
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 |
---|---|---|
|
@@ -138,6 +138,9 @@ tr { | |
} | ||
|
||
td,th { | ||
&.min-width-150px { | ||
min-width: 150px; | ||
} | ||
&.min-width-120px { | ||
min-width: 120px; | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
migrations/versions/14302cf25610_add_is_deleted_to_users.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,38 @@ | ||
"""Add column 'is_deleted' to users table. | ||
Revision ID: 14302cf25610 | ||
Revises: 750e1f83b191 | ||
Create Date: 2022-06-07 16:35:52.870887 | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function, unicode_literals | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# Revision identifiers, used by Alembic. | ||
revision = '14302cf25610' | ||
down_revision = '750e1f83b191' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
"""Add column 'is_deleted' to users table.""" | ||
op.add_column('users', sa.Column('is_deleted', sa.Boolean(), nullable=True)) | ||
op.execute("UPDATE users SET is_deleted = false") | ||
### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('users', schema=None) as batch_op: | ||
batch_op.alter_column('is_deleted', nullable=False) | ||
|
||
### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
"""Remove column 'is_deleted' to users table.""" | ||
### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('users', schema=None) as batch_op: | ||
batch_op.drop_column('is_deleted') | ||
|
||
### end Alembic commands ### |
Oops, something went wrong.