summaryrefslogtreecommitdiff
path: root/program/management/commands/importprogramslots.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-04-19 18:25:37 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-04-19 18:25:37 (GMT)
commit3c78c9f3f4af3c52725947f277e37938fd6d4f08 (patch)
tree304010bbb643602965cfeba5684ab9b41de04b1b /program/management/commands/importprogramslots.py
parent1d3301368c60efcb62dd4161e9e464c924b8f4d3 (diff)
fixed pep8/flake8 warnings. again.
Diffstat (limited to 'program/management/commands/importprogramslots.py')
-rw-r--r--program/management/commands/importprogramslots.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/program/management/commands/importprogramslots.py b/program/management/commands/importprogramslots.py
index ce4f60e..b527f53 100644
--- a/program/management/commands/importprogramslots.py
+++ b/program/management/commands/importprogramslots.py
@@ -18,6 +18,7 @@ RRULES = {
28: RRule.objects.get(pk=5)
}
+
class Command(NoArgsCommand):
help = 'Import programslots from the current program'
@@ -49,8 +50,8 @@ WHERE letzter_termin > current_date AND titel NOT LIKE 'Musikprogramm' AND titel
except ObjectDoesNotExist:
print 'show with name "%s" not found' % titel
else:
- programslot = ProgramSlot(rrule=rrule, byweekday=termin, show=show, dstart=erster_termin, tstart=tstart,
- tend=tend, until=letzter_termin)
+ programslot = ProgramSlot(rrule=rrule, byweekday=termin, show=show, dstart=erster_termin,
+ tstart=tstart, tend=tend, until=letzter_termin)
try:
programslot.save()
counter += 1
@@ -81,7 +82,8 @@ WHERE letzter_termin > current_date AND titel LIKE '%%(Wiederholung)'""")
except ObjectDoesNotExist:
print 'show with name "%s" not found' % titel
else:
- programslot = ProgramSlot(rrule=rrule, byweekday=termin, show=show, dstart=erster_termin, tstart=tstart, tend=tend, until=letzter_termin, is_repetition=True)
+ programslot = ProgramSlot(rrule=rrule, byweekday=termin, show=show, dstart=erster_termin,
+ tstart=tstart, tend=tend, until=letzter_termin, is_repetition=True)
try:
programslot.save()
counter += 1