зеркало из https://github.com/mozilla/bedrock.git
Merge pull request #4475 from pmac/fix-newsletter-maint-mode
Email pref center no hit basket in maint. mode.
This commit is contained in:
Коммит
1f25869757
|
@ -22,6 +22,8 @@ from jinja2 import Markup
|
|||
|
||||
import lib.l10n_utils as l10n_utils
|
||||
import requests
|
||||
|
||||
from bedrock.base import waffle
|
||||
from lib.l10n_utils.dotlang import _, _lazy
|
||||
from bedrock.base.urlresolvers import reverse
|
||||
|
||||
|
@ -259,6 +261,9 @@ def existing(request, token=None):
|
|||
# Redirect to the recovery page
|
||||
return redirect(reverse('newsletter.recovery'))
|
||||
|
||||
if waffle.switch('newsletter-maintenance-mode'):
|
||||
return l10n_utils.render(request, 'newsletter/existing.html')
|
||||
|
||||
unsub_parm = None
|
||||
|
||||
# Example user:
|
||||
|
|
|
@ -103,7 +103,7 @@ def schedule_database_jobs():
|
|||
def update_firefox_os_feeds():
|
||||
call_command('runscript update_firefox_os_feeds')
|
||||
|
||||
@scheduled_job('interval', hours=12)
|
||||
@scheduled_job('interval', hours=1)
|
||||
def update_blog_feeds():
|
||||
call_command('update_blog_feeds --database bedrock')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче