Skip to content

Commit fba5a58

Browse files
committed
Fix upgrade, remove <hr> when dashboard locked
1 parent 125607b commit fba5a58

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

alembic_db/alembic/versions/9bdb60d2a2cd_add_custom_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
def upgrade():
2727
with op.batch_alter_table("misc") as batch_op:
28-
batch_op.add_column(sa.Column('custom_layout', sa.Text))
28+
batch_op.add_column(sa.Column('custom_layout', sa.Text().with_variant(LONGTEXT, "mysql", "mariadb")))
2929

3030
op.execute(
3131
'''

mycodo/mycodo_flask/templates/pages/dashboard.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,18 @@
6565
{%- endfor -%}
6666
</div> <!-- grid-stack -->
6767

68-
<hr/>
68+
{% if this_dashboard.locked %}
69+
6970
</div>
7071

7172
<div style="clear: both"></div>
7273

73-
{% if not this_dashboard.locked %}
74+
{% else %}
75+
76+
<hr/>
77+
</div>
78+
79+
<div style="clear: both"></div>
7480

7581
<div class="container-fluid" style="padding-bottom: 1em; margin-left: 0.5em">
7682

0 commit comments

Comments
 (0)