Changeset 778d53d in OpenWorkouts-current for ow/views/user.py
- Timestamp:
- Mar 5, 2019, 11:45:32 PM (5 years ago)
- Branches:
- current
- Children:
- aa6dcaf
- Parents:
- 35953eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/views/user.py
r35953eb r778d53d 305 305 user_gender = localizer.translate(g[1]) 306 306 307 # get some data to be shown in the "profile stats" totals column 308 profile_stats = { 309 'sports': user.activity_sports, 310 'years': user.activity_years, 311 'current_year': request.GET.get('stats_year', now.year), 312 'current_sport': request.GET.get('stats_sport', user.favorite_sport), 313 } 314 307 315 return { 308 316 'user': user, … … 312 320 year=str(year), month=str(month).zfill(2)), 313 321 'current_week': week, 314 'totals': totals 322 'totals': totals, 323 'profile_stats': profile_stats 315 324 } 316 325
Note: See TracChangeset
for help on using the changeset viewer.