fix issue with arguments and gunicorn
This commit is contained in:
16
rebalance.py
Executable file
16
rebalance.py
Executable file
@@ -0,0 +1,16 @@
|
||||
from donationcalc import donationconfig
|
||||
import donationcalc.models
|
||||
|
||||
donconf = donationconfig.donationconfig()
|
||||
donconf.rebalance()
|
||||
sender = donationcalc.models.sender()
|
||||
donors = []
|
||||
f = open("donors.txt", "r")
|
||||
|
||||
for line in f.readlines():
|
||||
linesplit = line.split(",")
|
||||
newdonor = donationcalc.models.donor(email = linesplit[0], monthly = linesplit[1])
|
||||
donors.append(newdonor)
|
||||
f.close()
|
||||
|
||||
donationcalc.models.rebalanceall(sender,donors)
|
Reference in New Issue
Block a user