Skip to content

Commit

Permalink
style: format by pre-commit (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakuboskera authored Feb 21, 2023
1 parent 4503ae2 commit 391da0b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions app/api/authentication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from functools import wraps
from flask import request, abort
import os
from functools import wraps

from flask import abort
from flask import request


def token_required(f):
Expand Down
2 changes: 1 addition & 1 deletion app/api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from flask_restx import Resource

from app import db
from app.models import Tasks
from app.api.authentication import token_required
from app.models import Tasks

api = Namespace("tasks", description="Tasks related operations")

Expand Down
2 changes: 1 addition & 1 deletion app/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ function SwapThemes() {
} else {
localStorage.setItem("theme", "bootstrap-dark");
}
}
}
10 changes: 5 additions & 5 deletions migrations/versions/7207addd0742_feat_add_column_done.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
Create Date: 2023-02-21 16:48:03.468630
"""
from alembic import op
import sqlalchemy as sa
from alembic import op


# revision identifiers, used by Alembic.
revision = '7207addd0742'
down_revision = '5c77959b8455'
revision = "7207addd0742"
down_revision = "5c77959b8455"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('tasks', sa.Column('is_done', sa.Boolean(), nullable=True))
op.add_column("tasks", sa.Column("is_done", sa.Boolean(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('tasks', 'is_done')
op.drop_column("tasks", "is_done")
# ### end Alembic commands ###

0 comments on commit 391da0b

Please sign in to comment.