Skip to content

Instantly share code, notes, and snippets.

@muhammadbahtiars
muhammadbahtiars / Add Notif Data
Created November 27, 2023 11:05
NOTIFICATION MANAGER PYTHON
@shared_task
def addNotification(type_notif, activity, code, role_target, user_target, message):
data = {
"type": type_notif,
"activity": activity,
"code": code,
"role_target": role_target,
"user_target": user_target,
"sender_status": False,