~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to notification/management/commands/emit_notices.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
from notification.engine import send_all
7
7
 
 
8
 
8
9
class Command(NoArgsCommand):
9
 
    help = "Emit queued notices."
10
 
    
 
10
    help = 'Emit queued notices.'
 
11
 
11
12
    def handle_noargs(self, **options):
12
 
        logging.basicConfig(level=logging.DEBUG, format="%(message)s")
13
 
        logging.info("-" * 72)
 
13
        logging.basicConfig(level=logging.DEBUG, format='%(message)s')
 
14
        logging.info('-' * 72)
14
15
        send_all()
15
 
    
 
 
b'\\ No newline at end of file'