Add route heat colouring and detailed running analytics

This commit is contained in:
Peter Stockings
2026-10-01 18:43:33 +10:00
parent e37569ad09
commit 24c7fc2c6a
11 changed files with 526 additions and 31 deletions
@@ -0,0 +1,32 @@
"""Preserve recorded running metrics
Revision ID: bdbac89195a7
Revises: 342a45f4132a
Create Date: 2026-10-01 18:30:09.945360
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bdbac89195a7'
down_revision = '342a45f4132a'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('activity', schema=None) as batch_op:
batch_op.add_column(sa.Column('metrics', sa.JSON(), server_default='{}', nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('activity', schema=None) as batch_op:
batch_op.drop_column('metrics')
# ### end Alembic commands ###