mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-26 11:17:59 +00:00
Added extra logging to social redirect
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
from django.core.management.base import NoArgsCommand
|
||||
from django.core.management.base import NoArgsCommand, BaseCommand
|
||||
|
||||
from core.utils.cdn import upload_to_azure
|
||||
from spa.models import Mix
|
||||
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
class Command(BaseCommand):
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument(
|
||||
'--delete',
|
||||
action='store_true',
|
||||
dest='delete',
|
||||
default=False,
|
||||
help='Delete poll instead of closing it')
|
||||
|
||||
def handle_noargs(self, **options):
|
||||
try:
|
||||
mixes = Mix.objects.filter(archive_updated=False)
|
||||
@@ -16,3 +24,6 @@ class Command(NoArgsCommand):
|
||||
|
||||
except Exception, ex:
|
||||
print "Fatal error, bailing. {0}".format(ex.message)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user