{"action":"closed","issue":{"url":"https://api.github.com/repos/facetoe/zenpy/issues/204","repository_url":"https://api.github.com/repos/facetoe/zenpy","labels_url":"https://api.github.com/repos/facetoe/zenpy/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/facetoe/zenpy/issues/204/comments","events_url":"https://api.github.com/repos/facetoe/zenpy/issues/204/events","html_url":"https://github.com/facetoe/zenpy/issues/204","id":305795167,"number":204,"title":"SearchEndpoint - NameError: name 'ZENDESK_DATE_FORMAT' is not defined","user":{"login":"nealdav","id":13351070,"avatar_url":"https://avatars0.githubusercontent.com/u/13351070?v=4","gravatar_id":"","url":"https://api.github.com/users/nealdav","html_url":"https://github.com/nealdav","followers_url":"https://api.github.com/users/nealdav/followers","following_url":"https://api.github.com/users/nealdav/following{/other_user}","gists_url":"https://api.github.com/users/nealdav/gists{/gist_id}","starred_url":"https://api.github.com/users/nealdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nealdav/subscriptions","organizations_url":"https://api.github.com/users/nealdav/orgs","repos_url":"https://api.github.com/users/nealdav/repos","events_url":"https://api.github.com/users/nealdav/events{/privacy}","received_events_url":"https://api.github.com/users/nealdav/received_events","type":"User","site_admin":false},"labels":[{"id":174960234,"url":"https://api.github.com/repos/facetoe/zenpy/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-16T04:00:11Z","updated_at":"2018-03-21T12:27:27Z","closed_at":"2018-03-21T12:27:27Z","author_association":"NONE","body":"**v1.2.3**\r\n`ZENDESK_DATE_FORMAT = \"%Y-%m-%d\"\r\n\r\n    def __call__(self, *args, **kwargs):\r\n\r\n        renamed_kwargs = dict()\r\n        modifiers = list()\r\n        sort_order = list()\r\n        for key, value in kwargs.items():\r\n            if isinstance(value, datetime):\r\n                kwargs[key] = value.strftime(self.ZENDESK_DATE_FORMAT)`\r\n\r\n**v1.2.6**\r\n`    def __call__(self, *args, **kwargs):\r\n\r\n        renamed_kwargs = dict()\r\n        modifiers = list()\r\n        sort_order = list()\r\n        for key, value in kwargs.items():\r\n            if isinstance(value, datetime):\r\n                kwargs[key] = value.strftime(ZENDESK_DATE_FORMAT)`\r\n\r\nI just found that some of my older queries are throwing a NameError on Zenpy v1.2.6. \r\nLooks like the ZENDESK_DATE_FORMAT attr is missing. \r\n\r\nv1.2.3 is the last version without the issue. \r\n\r\n\r\n"}}
{"actor":{"display_login":"facetoe"}}