Fix tool for rendering invoices

This commit is contained in:
Joseph Schorr 2016-08-26 13:11:30 -04:00
parent 08e9a39099
commit b22e164017

View file

@ -1,4 +1,4 @@
from app import stripe import stripe
from app import app from app import app
from util.invoice import renderInvoiceToPdf from util.invoice import renderInvoiceToPdf
@ -7,9 +7,6 @@ from data import model
import argparse import argparse
from flask import Flask, current_app
from flask_mail import Mail
def sendInvoice(invoice_id): def sendInvoice(invoice_id):
invoice = stripe.Invoice.retrieve(invoice_id) invoice = stripe.Invoice.retrieve(invoice_id)
if not invoice['customer']: if not invoice['customer']: