Commit d626e60b by Clinton Blackburn

Merge pull request #4 from edx/datetime-format

Added Datetime format constant
parents 5b55bde1 ed404a42
...@@ -21,8 +21,9 @@ class Client(object): ...@@ -21,8 +21,9 @@ class Client(object):
way to get access to those classes and their methods. way to get access to those classes and their methods.
""" """
# Date format to be used when sending and parsing data from the API # Date/time formats to be used when sending and parsing data from the API
DATE_FORMAT = '%Y-%m-%d' DATE_FORMAT = '%Y-%m-%d'
DATETIME_FORMAT = DATE_FORMAT + 'T%f'
def __init__(self, base_url, auth_token=None, timeout=0.25): def __init__(self, base_url, auth_token=None, timeout=0.25):
""" """
......
...@@ -2,7 +2,7 @@ from distutils.core import setup ...@@ -2,7 +2,7 @@ from distutils.core import setup
setup( setup(
name='edx-analytics-data-api-client', name='edx-analytics-data-api-client',
version='0.2.0', version='0.2.1',
packages=['analyticsclient'], packages=['analyticsclient'],
url='https://github.com/edx/edx-analytics-data-api-client', url='https://github.com/edx/edx-analytics-data-api-client',
description='Client used to access edX analytics data warehouse', description='Client used to access edX analytics data warehouse',
......
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