Spaces:
Running
Running
fixed weekend warrior pointing not working
Browse files- streaksManagement.py +1 -0
streaksManagement.py
CHANGED
|
@@ -107,6 +107,7 @@ def streaks_manager(db_uri: str, document: Dict) -> Union[bool, str]:
|
|
| 107 |
today = datetime.date(datetime.now())
|
| 108 |
if (today.weekday()>=5):
|
| 109 |
streakPoints= Points(userId=document['user_id'],platformEngagement=PlatformEngagement(daily_check_in=5),weekendWarrior=PointMultipliersWeekendWarrior())
|
|
|
|
| 110 |
else:
|
| 111 |
streakPoints= Points(userId=document['user_id'],platformEngagement=PlatformEngagement(daily_check_in=5))
|
| 112 |
create_points_func(document=streakPoints)
|
|
|
|
| 107 |
today = datetime.date(datetime.now())
|
| 108 |
if (today.weekday()>=5):
|
| 109 |
streakPoints= Points(userId=document['user_id'],platformEngagement=PlatformEngagement(daily_check_in=5),weekendWarrior=PointMultipliersWeekendWarrior())
|
| 110 |
+
create_points_func(document=streakPoints)
|
| 111 |
else:
|
| 112 |
streakPoints= Points(userId=document['user_id'],platformEngagement=PlatformEngagement(daily_check_in=5))
|
| 113 |
create_points_func(document=streakPoints)
|