{"action":"created","comment":{"url":"https://api.github.com/repos/translate/pootle/pulls/comments/70024677","id":70024677,"diff_hunk":"@@ -50,16 +53,26 @@ def add_arguments(self, parser):\n                  \"are excluded.\",\n         )\n \n-    def _get_revision_from_since(self, since):\n-        from pootle.core.dateparse import parse_datetime\n-        from pootle.core.utils.timezone import make_aware\n-        from pootle_statistics.models import Submission\n+    def get_aware_datetime(self, date_string):\n+        \"\"\"Return an aware datetime parsed from a date string.\n+\n+        Date string must contain a datetime in the ISO 8601\n+        (\"2016-01-24T23:15:22+0000\") or \"2016-01-24 23:15:22 +0000\" or\n+        \"2016-01-24\" formats.\n+        \"\"\"\n+        if not date_string:\n+            return None\n \n-        if \" \" in since:\n-            since = \"%sT%s%s\" % tuple(since.split(\" \"))\n+        try:\n+            return make_aware(parse_datetime(date_string))\n+        except Exception:","path":"pootle/apps/pootle_app/management/commands/contributors.py","position":null,"original_position":46,"commit_id":"c0394187edef307a43d0b6d796f57be0f612afbf","original_commit_id":"fc7f5988e06d64e144c33aef6729b64112dd5621","user":{"login":"phlax","id":454682,"avatar_url":"https://avatars.githubusercontent.com/u/454682?v=3","gravatar_id":"","url":"https://api.github.com/users/phlax","html_url":"https://github.com/phlax","followers_url":"https://api.github.com/users/phlax/followers","following_url":"https://api.github.com/users/phlax/following{/other_user}","gists_url":"https://api.github.com/users/phlax/gists{/gist_id}","starred_url":"https://api.github.com/users/phlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlax/subscriptions","organizations_url":"https://api.github.com/users/phlax/orgs","repos_url":"https://api.github.com/users/phlax/repos","events_url":"https://api.github.com/users/phlax/events{/privacy}","received_events_url":"https://api.github.com/users/phlax/received_events","type":"User","site_admin":false},"body":"this should be a particular type of exception","created_at":"2016-07-08T04:43:55Z","updated_at":"2016-07-08T04:43:55Z","html_url":"https://github.com/translate/pootle/pull/4814#discussion_r70024677","pull_request_url":"https://api.github.com/repos/translate/pootle/pulls/4814","_links":{"self":{"href":"https://api.github.com/repos/translate/pootle/pulls/comments/70024677"},"html":{"href":"https://github.com/translate/pootle/pull/4814#discussion_r70024677"},"pull_request":{"href":"https://api.github.com/repos/translate/pootle/pulls/4814"}}},"pull_request":{"url":"https://api.github.com/repos/translate/pootle/pulls/4814","id":73812373,"html_url":"https://github.com/translate/pootle/pull/4814","diff_url":"https://github.com/translate/pootle/pull/4814.diff","patch_url":"https://github.com/translate/pootle/pull/4814.patch","issue_url":"https://api.github.com/repos/translate/pootle/issues/4814","number":4814,"state":"open","locked":false,"title":"Add --until to contributors command","user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-14T20:57:27Z","updated_at":"2016-07-08T04:43:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff84206b084f4644856931875d2b67bf87a6bee7","assignee":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"assignees":[{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/translate/pootle/milestones/25","html_url":"https://github.com/translate/pootle/milestones/2.8.0","labels_url":"https://api.github.com/repos/translate/pootle/milestones/25/labels","id":1436949,"number":25,"title":"2.8.0","description":"","creator":{"login":"phlax","id":454682,"avatar_url":"https://avatars.githubusercontent.com/u/454682?v=3","gravatar_id":"","url":"https://api.github.com/users/phlax","html_url":"https://github.com/phlax","followers_url":"https://api.github.com/users/phlax/followers","following_url":"https://api.github.com/users/phlax/following{/other_user}","gists_url":"https://api.github.com/users/phlax/gists{/gist_id}","starred_url":"https://api.github.com/users/phlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phlax/subscriptions","organizations_url":"https://api.github.com/users/phlax/orgs","repos_url":"https://api.github.com/users/phlax/repos","events_url":"https://api.github.com/users/phlax/events{/privacy}","received_events_url":"https://api.github.com/users/phlax/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":108,"state":"open","created_at":"2015-12-01T09:07:40Z","updated_at":"2016-07-07T09:02:29Z","due_on":"2016-03-17T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/translate/pootle/pulls/4814/commits","review_comments_url":"https://api.github.com/repos/translate/pootle/pulls/4814/comments","review_comment_url":"https://api.github.com/repos/translate/pootle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/translate/pootle/issues/4814/comments","statuses_url":"https://api.github.com/repos/translate/pootle/statuses/c0394187edef307a43d0b6d796f57be0f612afbf","head":{"label":"unho:add-contributors-until","ref":"add-contributors-until","sha":"c0394187edef307a43d0b6d796f57be0f612afbf","user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"repo":{"id":8295531,"name":"pootle","full_name":"unho/pootle","owner":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unho/pootle","description":"Online translation tool","fork":true,"url":"https://api.github.com/repos/unho/pootle","forks_url":"https://api.github.com/repos/unho/pootle/forks","keys_url":"https://api.github.com/repos/unho/pootle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unho/pootle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unho/pootle/teams","hooks_url":"https://api.github.com/repos/unho/pootle/hooks","issue_events_url":"https://api.github.com/repos/unho/pootle/issues/events{/number}","events_url":"https://api.github.com/repos/unho/pootle/events","assignees_url":"https://api.github.com/repos/unho/pootle/assignees{/user}","branches_url":"https://api.github.com/repos/unho/pootle/branches{/branch}","tags_url":"https://api.github.com/repos/unho/pootle/tags","blobs_url":"https://api.github.com/repos/unho/pootle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unho/pootle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unho/pootle/git/refs{/sha}","trees_url":"https://api.github.com/repos/unho/pootle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unho/pootle/statuses/{sha}","languages_url":"https://api.github.com/repos/unho/pootle/languages","stargazers_url":"https://api.github.com/repos/unho/pootle/stargazers","contributors_url":"https://api.github.com/repos/unho/pootle/contributors","subscribers_url":"https://api.github.com/repos/unho/pootle/subscribers","subscription_url":"https://api.github.com/repos/unho/pootle/subscription","commits_url":"https://api.github.com/repos/unho/pootle/commits{/sha}","git_commits_url":"https://api.github.com/repos/unho/pootle/git/commits{/sha}","comments_url":"https://api.github.com/repos/unho/pootle/comments{/number}","issue_comment_url":"https://api.github.com/repos/unho/pootle/issues/comments{/number}","contents_url":"https://api.github.com/repos/unho/pootle/contents/{+path}","compare_url":"https://api.github.com/repos/unho/pootle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unho/pootle/merges","archive_url":"https://api.github.com/repos/unho/pootle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unho/pootle/downloads","issues_url":"https://api.github.com/repos/unho/pootle/issues{/number}","pulls_url":"https://api.github.com/repos/unho/pootle/pulls{/number}","milestones_url":"https://api.github.com/repos/unho/pootle/milestones{/number}","notifications_url":"https://api.github.com/repos/unho/pootle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unho/pootle/labels{/name}","releases_url":"https://api.github.com/repos/unho/pootle/releases{/id}","deployments_url":"https://api.github.com/repos/unho/pootle/deployments","created_at":"2013-02-19T17:34:16Z","updated_at":"2015-05-07T09:02:57Z","pushed_at":"2016-07-07T16:54:37Z","git_url":"git://github.com/unho/pootle.git","ssh_url":"git@github.com:unho/pootle.git","clone_url":"https://github.com/unho/pootle.git","svn_url":"https://github.com/unho/pootle","homepage":"http://pootle.translatehouse.org","size":85922,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"translate:master","ref":"master","sha":"57e1055e1b49d42974c1fed319cd863744c3ebc6","user":{"login":"translate","id":1538178,"avatar_url":"https://avatars.githubusercontent.com/u/1538178?v=3","gravatar_id":"","url":"https://api.github.com/users/translate","html_url":"https://github.com/translate","followers_url":"https://api.github.com/users/translate/followers","following_url":"https://api.github.com/users/translate/following{/other_user}","gists_url":"https://api.github.com/users/translate/gists{/gist_id}","starred_url":"https://api.github.com/users/translate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translate/subscriptions","organizations_url":"https://api.github.com/users/translate/orgs","repos_url":"https://api.github.com/users/translate/repos","events_url":"https://api.github.com/users/translate/events{/privacy}","received_events_url":"https://api.github.com/users/translate/received_events","type":"Organization","site_admin":false},"repo":{"id":3769702,"name":"pootle","full_name":"translate/pootle","owner":{"login":"translate","id":1538178,"avatar_url":"https://avatars.githubusercontent.com/u/1538178?v=3","gravatar_id":"","url":"https://api.github.com/users/translate","html_url":"https://github.com/translate","followers_url":"https://api.github.com/users/translate/followers","following_url":"https://api.github.com/users/translate/following{/other_user}","gists_url":"https://api.github.com/users/translate/gists{/gist_id}","starred_url":"https://api.github.com/users/translate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translate/subscriptions","organizations_url":"https://api.github.com/users/translate/orgs","repos_url":"https://api.github.com/users/translate/repos","events_url":"https://api.github.com/users/translate/events{/privacy}","received_events_url":"https://api.github.com/users/translate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/translate/pootle","description":"Online translation tool","fork":false,"url":"https://api.github.com/repos/translate/pootle","forks_url":"https://api.github.com/repos/translate/pootle/forks","keys_url":"https://api.github.com/repos/translate/pootle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/translate/pootle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/translate/pootle/teams","hooks_url":"https://api.github.com/repos/translate/pootle/hooks","issue_events_url":"https://api.github.com/repos/translate/pootle/issues/events{/number}","events_url":"https://api.github.com/repos/translate/pootle/events","assignees_url":"https://api.github.com/repos/translate/pootle/assignees{/user}","branches_url":"https://api.github.com/repos/translate/pootle/branches{/branch}","tags_url":"https://api.github.com/repos/translate/pootle/tags","blobs_url":"https://api.github.com/repos/translate/pootle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/translate/pootle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/translate/pootle/git/refs{/sha}","trees_url":"https://api.github.com/repos/translate/pootle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/translate/pootle/statuses/{sha}","languages_url":"https://api.github.com/repos/translate/pootle/languages","stargazers_url":"https://api.github.com/repos/translate/pootle/stargazers","contributors_url":"https://api.github.com/repos/translate/pootle/contributors","subscribers_url":"https://api.github.com/repos/translate/pootle/subscribers","subscription_url":"https://api.github.com/repos/translate/pootle/subscription","commits_url":"https://api.github.com/repos/translate/pootle/commits{/sha}","git_commits_url":"https://api.github.com/repos/translate/pootle/git/commits{/sha}","comments_url":"https://api.github.com/repos/translate/pootle/comments{/number}","issue_comment_url":"https://api.github.com/repos/translate/pootle/issues/comments{/number}","contents_url":"https://api.github.com/repos/translate/pootle/contents/{+path}","compare_url":"https://api.github.com/repos/translate/pootle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/translate/pootle/merges","archive_url":"https://api.github.com/repos/translate/pootle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/translate/pootle/downloads","issues_url":"https://api.github.com/repos/translate/pootle/issues{/number}","pulls_url":"https://api.github.com/repos/translate/pootle/pulls{/number}","milestones_url":"https://api.github.com/repos/translate/pootle/milestones{/number}","notifications_url":"https://api.github.com/repos/translate/pootle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/translate/pootle/labels{/name}","releases_url":"https://api.github.com/repos/translate/pootle/releases{/id}","deployments_url":"https://api.github.com/repos/translate/pootle/deployments","created_at":"2012-03-19T23:06:03Z","updated_at":"2016-07-07T09:27:31Z","pushed_at":"2016-07-07T16:54:37Z","git_url":"git://github.com/translate/pootle.git","ssh_url":"git@github.com:translate/pootle.git","clone_url":"https://github.com/translate/pootle.git","svn_url":"https://github.com/translate/pootle","homepage":"http://pootle.translatehouse.org","size":90840,"stargazers_count":663,"watchers_count":663,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":191,"mirror_url":null,"open_issues_count":382,"forks":191,"open_issues":382,"watchers":663,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/translate/pootle/pulls/4814"},"html":{"href":"https://github.com/translate/pootle/pull/4814"},"issue":{"href":"https://api.github.com/repos/translate/pootle/issues/4814"},"comments":{"href":"https://api.github.com/repos/translate/pootle/issues/4814/comments"},"review_comments":{"href":"https://api.github.com/repos/translate/pootle/pulls/4814/comments"},"review_comment":{"href":"https://api.github.com/repos/translate/pootle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/translate/pootle/pulls/4814/commits"},"statuses":{"href":"https://api.github.com/repos/translate/pootle/statuses/c0394187edef307a43d0b6d796f57be0f612afbf"}}}}
{"actor":{"display_login":"phlax"}}