2023-07-13 14:49:27 +00:00
|
|
|
from donationcalc import donationconfig
|
2023-07-13 15:50:33 +00:00
|
|
|
import donationcalc.models
|
2023-07-13 14:49:27 +00:00
|
|
|
|
2023-08-28 23:35:53 +00:00
|
|
|
donconf = donationconfig.donationconfig()
|
|
|
|
donconf.rebalance()
|
|
|
|
sender = donationcalc.models.sender()
|
|
|
|
donors = []
|
|
|
|
f = open("donors.txt", "r")
|
2023-07-13 14:49:27 +00:00
|
|
|
|
2023-08-28 23:35:53 +00:00
|
|
|
for line in f.readlines():
|
|
|
|
linesplit = line.split(",")
|
|
|
|
newdonor = donationcalc.models.donor(email = linesplit[0], monthly = linesplit[1])
|
|
|
|
donors.append(newdonor)
|
|
|
|
f.close()
|
2023-07-13 14:49:27 +00:00
|
|
|
|
2023-08-28 23:35:53 +00:00
|
|
|
donationcalc.models.rebalanceall(sender,donors)
|