aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-06-14 21:49:26 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-06-14 21:49:26 +0300
commit612e893bc87c4a81e2a98de75c2242c319edcaf9 (patch)
treec576ffc15c5b57bf68ce0c7430f5db96f2d35faa /servo
parentd988adbdaf57bb5e82823a416f92fa6995d59589 (diff)
downloadServo-612e893bc87c4a81e2a98de75c2242c319edcaf9.tar.gz
Servo-612e893bc87c4a81e2a98de75c2242c319edcaf9.tar.bz2
Servo-612e893bc87c4a81e2a98de75c2242c319edcaf9.zip
Testing for django.core.exceptions.ImproperlyConfigured
Diffstat (limited to 'servo')
-rw-r--r--servo/management/commands/scheduler.py4
-rw-r--r--servo/models/common.py4
-rw-r--r--servo/tasks.py2
3 files changed, 6 insertions, 4 deletions
diff --git a/servo/management/commands/scheduler.py b/servo/management/commands/scheduler.py
index c9e3839..d53e050 100644
--- a/servo/management/commands/scheduler.py
+++ b/servo/management/commands/scheduler.py
@@ -3,10 +3,10 @@ from datetime import datetime
import django
import django_rq
-from django.core.management.base import BaseCommand
+
from django_rq.management.commands import rqscheduler
-django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
+#django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
from servo.tasks import check_mail
diff --git a/servo/models/common.py b/servo/models/common.py
index b1b756f..2c7fa08 100644
--- a/servo/models/common.py
+++ b/servo/models/common.py
@@ -46,7 +46,9 @@ class CsvTable(object):
self.header = u''
def padrow(self, row):
- """Pad row to self.colwdith"""
+ """
+ Pad row to self.colwdith
+ """
r = []
for c in row:
r.append(str(c).ljust(self.colwidth))
diff --git a/servo/tasks.py b/servo/tasks.py
index c31dd22..04c0a8e 100644
--- a/servo/tasks.py
+++ b/servo/tasks.py
@@ -29,7 +29,7 @@ def get_rules():
def apply_rules(event):
"""
- Applies configured rules
+ Applies configured rules to an event
event is the Event object that was triggered
"""