5kmrun-bg / fivekmrun-app

A mobile app for 5kmrun.bg
https://5kmrun.bg
3 stars 5 forks source link

Fix badges #132

Closed vakrilov closed 7 months ago

vakrilov commented 7 months ago

Fix Max and Selfie Max logic

MAX Badge

Max badge is given if the user has official run for each Saturday of the year.

Max badge is never given for the current years.

MAX Selfie

Max selfie badge is given if the user has a selfie run at the end of each week(Sunday) in the year.

Incomplete weeks at the start of the year are required to receive the badge. For example if 1st of January is Sunday, you will still need to have a selfie for this week in order to take the badge (it may be a run form 31st Dec from the previous year though).

Incomplete weeks at the end of the year are NOT required to receive the badge. For example, if the last week of the year starts on 29 Dec - you don't have to have a selfie run for this week to get the badge.

Max selfie badge is never given for the current years.