added notification for getting points after reading article

This commit is contained in:
abutalib-kiwi
2023-08-25 19:08:15 +05:30
parent 9b6a84c7d1
commit 5b2ab2275e
5 changed files with 18 additions and 8 deletions

View File

@ -17,7 +17,8 @@ IN_PROGRESS_TASK_EXPIRING = 13
TOP_JUNIOR = 14
NEW_ARTICLE_PUBLISHED = 15
REMOVE_JUNIOR = 16
ARTICLE_REWARD_POINTS = 16
REMOVE_JUNIOR = 17
TEST_NOTIFICATION = 99
@ -66,7 +67,7 @@ NOTIFICATION_DICT = {
# as junior send task for approval
TASK_ACTION: {
"title": "Task completion approval!",
"body": "{from_user} completed her task {task_name}."
"body": "{from_user} completed their task {task_name}."
},
# Juniors will receive notification as soon
# as their task is rejected by custodians
@ -105,6 +106,11 @@ NOTIFICATION_DICT = {
"title": "Time to read!",
"body": "A new article has been published."
},
# Juniors will receive notification when they earn points by reading financial Learning
ARTICLE_REWARD_POINTS: {
"title": "Article reward points!",
"body": "You are rewarded with {points} points for reading article and answering questions. "
},
# Juniors will receive notification as soon as their custodians remove them from account
REMOVE_JUNIOR: {
"title": "Disassociate by guardian!",