Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding RPT and ESRA #1616

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jobs/notebook-report/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Config(object):
ENVIRONMENT = os.getenv('ENVIRONMENT', '')
WEEKLY_REPORT_DATES = os.getenv('WEEKLY_REPORT_DATES', '[1]')
MONTHLY_REPORT_DATES = os.getenv('MONTHLY_REPORT_DATES', '[1]')
PARTNER_CODES = os.getenv('PARTNER_CODES', 'CSO,VS')
PARTNER_CODES = os.getenv('PARTNER_CODES', 'CSO,VS,RPT,ESRA')

# POSTGRESQL
PAY_USER = os.getenv('PAY_USER', '')
Expand Down
2 changes: 1 addition & 1 deletion jobs/notebook-report/notebookreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def process_partner_notebooks(notebookdirectory: str, data_dir: str, partner_cod
logging.exception('Error: %s.', notebookdirectory)
send_email(notebookdirectory, 'ERROR', traceback.format_exc())

# First day of the month is 1
#First day of the month is 1
if notebookdirectory == 'daily' \
or (notebookdirectory == 'monthly' and date.today().day in monthly_report_dates):
execute_notebook(notebookdirectory, data_dir, partner_code)
Expand Down