{"action":"closed","issue":{"url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/1183","labels_url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/1183/labels{/name}","comments_url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/1183/comments","events_url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/1183/events","html_url":"https://github.com/jeff1evesque/machine-learning/issues/1183","id":55574672,"number":1183,"title":"Define 'check' method in 'session_data_add.py'","user":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-27T04:25:56Z","updated_at":"2015-01-27T16:15:34Z","closed_at":"2015-01-27T16:15:34Z","body":"Since we are [implementing](https://github.com/jeff1evesque/machine-learning/issues/1182#ref-commit-fb55a0f) the `check` method in `load_logic.py`, we need to define it within `session_data_add.py`.  Specifically, it will contain logic of the following form:\r\n\r\n```python\r\n      if len(session.return_error()) > 0:\r\n        for val in session.return_error():\r\n          print val\r\n        sys.exit()\r\n```\r\n\r\nAlso, we need to ensure each `save_svm_**` method in `session_data_add.py` returns useful information pertaining to any errors arising upon database queries.  This may involve restructuring some of the logic within this file, along with corresponding changes to `data_saver.py`."}}