Skip to content

Date objects are removed from event properties #94

Description

@hadrien
>>> from datetime import date
>>> from analytics import utils
>>> simple = {'birthdate': date(1981, 2, 2)}
>>> utils.clean(simple)
Dictionary values must be serializeable to JSON "birthdate" value 1981-02-02 of type <class 'datetime.date'> is unsupported.
{}

It should not be removed as json serializer permits date object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions