Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Add gold accounting script to be emailed monthly #53

Closed
wants to merge 1 commit into from

Conversation

MelissaCole
Copy link
Contributor

馃憮 @umbrae

Email the data from the accounting script monthly. Will create a puppet PR and a private PR (g.accounting_email).

The original script:
https://gist.github.com/MelissaCole/eff526fc165891630fc1

user_creddits = get_creddit_balances_on(start_date)

output = cStringIO.StringIO()
output.write('"{}"'.format(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you able to use writer = csv.writer(StringIO.StringIO(output)) here instead? Should give you much the same interface as csvfile. You might also have to use StringIO rather than cStringIO in that case as well, cStringIO really doesn't like unicode strings.

@umbrae
Copy link

umbrae commented Apr 30, 2015

馃拝 No real concerns, just one tiny thing! I went easy on reviewing the script itself for style/etc considering it's a script they've already been using successfully.

@MelissaCole
Copy link
Contributor Author

馃拠

@umbrae
Copy link

umbrae commented May 1, 2015

馃悷

This email will go out to accounting on the second day of each month with
the csv file attached with delicious data from the gold db.
@MelissaCole
Copy link
Contributor Author

46e2e28

@MelissaCole MelissaCole closed this Jun 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants