Commit 779ebb45 by Jason Bau

Fix len(user_ids) reported in log

It's reporting the len(str(user_ids)) right now
parent 7b776718
...@@ -95,13 +95,13 @@ def generate_digest_content(user_ids, from_dt, to_dt): ...@@ -95,13 +95,13 @@ def generate_digest_content(user_ids, from_dt, to_dt):
# set up and execute the API call # set up and execute the API call
api_url = settings.CS_URL_BASE + '/api/v1/notifications' api_url = settings.CS_URL_BASE + '/api/v1/notifications'
user_ids = ','.join(map(str, user_ids)) user_ids_string = ','.join(map(str, user_ids))
dt_format = '%Y-%m-%d %H:%M:%S%z' dt_format = '%Y-%m-%d %H:%M:%S%z'
headers = { headers = {
'X-Edx-Api-Key': settings.CS_API_KEY, 'X-Edx-Api-Key': settings.CS_API_KEY,
} }
data = { data = {
'user_ids': user_ids, 'user_ids': user_ids_string,
'from': from_dt.strftime(dt_format), 'from': from_dt.strftime(dt_format),
'to': to_dt.strftime(dt_format) 'to': to_dt.strftime(dt_format)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment