typo fix and email's json location fixed
This commit is contained in:
parent
ff31005d87
commit
1d770411a0
|
@ -26,7 +26,7 @@ class Command(BaseCommand):
|
|||
if notification.date_sent < make_aware(datetime.now(), get_current_timezone()) - timedelta(days=notification_timeout):
|
||||
continue
|
||||
except:
|
||||
InvoiceNotificationEmaxil.objects.create(invoice_number=invoice.id)
|
||||
InvoiceNotificationEmail.objects.create(invoice_number=invoice.id)
|
||||
|
||||
nameid = invoice.famille.liaisonnameidfamille_set.all()[0]
|
||||
tmp_json_file = os.path.join(tmp_json_location, '%s.json' % invoice.id)
|
||||
|
@ -35,5 +35,5 @@ class Command(BaseCommand):
|
|||
invoice.date_envoi_dernier_mail = make_aware(datetime.now(), get_current_timezone())
|
||||
InvoiceNotificationEmail.objects.create(invoice_number=invoice.id)
|
||||
invoice.save()
|
||||
shutil.move(tmp_json_location, json_location.format(invoice_id=invoice.id))
|
||||
shutil.move(tmp_json_file, json_location.format(invoice_id=invoice.id))
|
||||
|
||||
|
|
Reference in New Issue