Changeset 5bdfbfb in OpenWorkouts-current for ow/views/workout.py


Ignore:
Timestamp:
Jan 25, 2019, 12:42:33 AM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
26220ba, 7783f97
Parents:
421f05f
Message:

(#7) Show year/month/weekly stats in the dashboard for the user,

including a bar chart for activity during the current week

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/views/workout.py

    r421f05f r5bdfbfb  
     1from decimal import Decimal
    12from datetime import datetime, timedelta, time, timezone
    23
     
    121122                                 tzinfo=timezone.utc)
    122123        context.start = start
     124        # ensure distance is a decimal
     125        context.distance = Decimal(context.distance)
    123126        catalog = get_catalog(context)
    124127        reindex_object(catalog, context)
Note: See TracChangeset for help on using the changeset viewer.