added deadline and postdate to announcement upgrades

This commit is contained in:
Harry Bomrah 2014-10-17 18:24:03 +08:00
parent 78839a64d0
commit 6473abeb44
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ namespace :upgrade do
bulletin.email_sentdate = announcement["email_sentdate"]
bulletin.other_mailaddress = announcement["other_mailaddress"]
bulletin.public = announcement["public"]
bulletin.postdate = announcement["postdate"]
bulletin.deadline = announcement["deadline"]
bulletin.subtitle_translations = announcement["subtitle"]
announcement["text"]["en"] = smart_downloader(announcement["text"]["en"], args.url.chomp("/"))
announcement["text"]["zh_tw"] = smart_downloader(announcement["text"]["zh_tw"], args.url.chomp("/"))