{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/122","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/122/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/122/events","html_url":"https://github.com/airbnb/airflow/issues/122","id":94211508,"number":122,"title":"/admin/airflow/duration URI throws a Type Error","user":{"login":"r39132","id":581734,"avatar_url":"https://avatars.githubusercontent.com/u/581734?v=3","gravatar_id":"","url":"https://api.github.com/users/r39132","html_url":"https://github.com/r39132","followers_url":"https://api.github.com/users/r39132/followers","following_url":"https://api.github.com/users/r39132/following{/other_user}","gists_url":"https://api.github.com/users/r39132/gists{/gist_id}","starred_url":"https://api.github.com/users/r39132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r39132/subscriptions","organizations_url":"https://api.github.com/users/r39132/orgs","repos_url":"https://api.github.com/users/r39132/repos","events_url":"https://api.github.com/users/r39132/events{/privacy}","received_events_url":"https://api.github.com/users/r39132/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T04:30:10Z","updated_at":"2015-07-10T05:16:38Z","closed_at":"2015-07-10T05:16:38Z","body":"`TypeError: float() argument must be a string or a number`\r\n\r\nEncounter the exception above from the pip-installed 1.2 version on Ubuntu in AWS\r\nURI = `/admin/airflow/duration?days=30&dag_id=ep_demo`\r\n```\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1836, in __call__\r\nreturn self.wsgi_app(environ, start_response)\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1820, in wsgi_app\r\nresponse = self.make_response(self.handle_exception(e))\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1403, in handle_exception\r\nreraise(exc_type, exc_value, tb)\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1817, in wsgi_app\r\nresponse = self.full_dispatch_request()\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1477, in full_dispatch_request\r\nrv = self.handle_user_exception(e)\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1381, in handle_user_exception\r\nreraise(exc_type, exc_value, tb)\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1475, in full_dispatch_request\r\nrv = self.dispatch_request()\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1461, in dispatch_request\r\nreturn self.view_functions[rule.endpoint](**req.view_args)\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask_admin/base.py\", line 68, in inner\r\nreturn self._run_view(f, *args, **kwargs)\r\nFile \"/usr/local/lib/python2.7/dist-packages/flask_admin/base.py\", line 359, in _run_view\r\nreturn fn(self, *args, **kwargs)\r\nFile \"/usr/local/lib/python2.7/dist-packages/airflow/www/app.py\", line 1162, in duration\r\nfloat(ti.duration) / (60*60)\r\nTypeError: float() argument must be a string or a number\r\n```"},"comment":{"url":"https://api.github.com/repos/airbnb/airflow/issues/comments/120230112","html_url":"https://github.com/airbnb/airflow/issues/122#issuecomment-120230112","issue_url":"https://api.github.com/repos/airbnb/airflow/issues/122","id":120230112,"user":{"login":"mistercrunch","id":487433,"avatar_url":"https://avatars.githubusercontent.com/u/487433?v=3","gravatar_id":"","url":"https://api.github.com/users/mistercrunch","html_url":"https://github.com/mistercrunch","followers_url":"https://api.github.com/users/mistercrunch/followers","following_url":"https://api.github.com/users/mistercrunch/following{/other_user}","gists_url":"https://api.github.com/users/mistercrunch/gists{/gist_id}","starred_url":"https://api.github.com/users/mistercrunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistercrunch/subscriptions","organizations_url":"https://api.github.com/users/mistercrunch/orgs","repos_url":"https://api.github.com/users/mistercrunch/repos","events_url":"https://api.github.com/users/mistercrunch/events{/privacy}","received_events_url":"https://api.github.com/users/mistercrunch/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T05:16:37Z","updated_at":"2015-07-10T05:16:37Z","body":"This should fix it:\r\nhttps://github.com/airbnb/airflow/commit/4afa2ab4c98d91d52beb89cdcad80979843a9aba"}}