Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
small nit
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzamunir7300 committed Dec 5, 2018
1 parent ef3cb87 commit c7d1b51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions edx_notifications/stores/sql/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,10 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument
return msg

def translate_payload_title(self, payload):
announcement_date = payload['announcement_date']

# print "///////////###############//////////////////"
# print (_(title[0]))
# print (title[0])
# title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4])
# print "///////////###############//////////////////"
# print (title)

title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date)

payload['title'] = title
if payload and 'notification_type' in payload and payload['notification_type'] == "courseannouncement":
announcement_date = payload['announcement_date']
title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date)
payload['title'] = title
return payload

@classmethod
Expand Down

0 comments on commit c7d1b51

Please sign in to comment.