work on schedule gen bug -- split Schedule's date and time

This commit is contained in:
bkfox
2017-12-15 23:32:39 +01:00
parent 9ad47b795a
commit 343279a777
5 changed files with 41 additions and 30 deletions

View File

@ -66,7 +66,7 @@ class Actions:
qs.delete()
@staticmethod
def check (date):
def check(date):
qs = Diffusion.objects.filter(type = Diffusion.Type.unconfirmed,
start__gt = date)
items = []
@ -83,7 +83,7 @@ class Actions:
Diffusion.objects.filter(id__in = items).delete()
class Command (BaseCommand):
class Command(BaseCommand):
help= __doc__
def add_arguments (self, parser):