{"action":"created","comment":{"url":"https://api.github.com/repos/translation-cards/translation-cards/pulls/comments/52347010","id":52347010,"diff_hunk":"@@ -91,19 +93,47 @@ public DbManager(Context context) {\n             }\n             res[dictionaryIndex] = new Dictionary(\n                     label, languageTranslations, dictionaryId, deckId);\n-            c.moveToNext();\n+            cursor.moveToNext();\n             dictionaryIndex++;\n         }\n         return res;\n     }\n \n-    public long addDeck(SQLiteDatabase writableDatabase, String label, String publisher) {\n+    public Dictionary[] getAllDictionariesForDeck(long deckId) {\n+        Cursor cursor = dbh.getReadableDatabase().query(\n+                DictionariesTable.TABLE_NAME, null,\n+                DictionariesTable.DECK_ID + \" = ?\",\n+                new String[]{String.valueOf(deckId)}, null, null,\n+                null);","path":"app/src/main/java/org/mercycorps/translationcards/DbManager.java","position":83,"original_position":83,"commit_id":"bc8785afd9f0ed6ce07fa20ce785b4f140bf3cb4","original_commit_id":"bc8785afd9f0ed6ce07fa20ce785b4f140bf3cb4","user":{"login":"nworden","id":9059304,"avatar_url":"https://avatars.githubusercontent.com/u/9059304?v=3","gravatar_id":"","url":"https://api.github.com/users/nworden","html_url":"https://github.com/nworden","followers_url":"https://api.github.com/users/nworden/followers","following_url":"https://api.github.com/users/nworden/following{/other_user}","gists_url":"https://api.github.com/users/nworden/gists{/gist_id}","starred_url":"https://api.github.com/users/nworden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nworden/subscriptions","organizations_url":"https://api.github.com/users/nworden/orgs","repos_url":"https://api.github.com/users/nworden/repos","events_url":"https://api.github.com/users/nworden/events{/privacy}","received_events_url":"https://api.github.com/users/nworden/received_events","type":"User","site_admin":false},"body":"It might be useful to order these by dictionary ID, to ensure a consistent ordering when people open/close the screen.","created_at":"2016-02-09T17:59:45Z","updated_at":"2016-02-09T17:59:45Z","html_url":"https://github.com/translation-cards/translation-cards/pull/19#discussion_r52347010","pull_request_url":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/translation-cards/translation-cards/pulls/comments/52347010"},"html":{"href":"https://github.com/translation-cards/translation-cards/pull/19#discussion_r52347010"},"pull_request":{"href":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19","id":58668286,"html_url":"https://github.com/translation-cards/translation-cards/pull/19","diff_url":"https://github.com/translation-cards/translation-cards/pull/19.diff","patch_url":"https://github.com/translation-cards/translation-cards/pull/19.patch","issue_url":"https://api.github.com/repos/translation-cards/translation-cards/issues/19","number":19,"state":"open","locked":false,"title":"Natasha pat/collections ui","user":{"login":"natashaj7","id":1128671,"avatar_url":"https://avatars.githubusercontent.com/u/1128671?v=3","gravatar_id":"","url":"https://api.github.com/users/natashaj7","html_url":"https://github.com/natashaj7","followers_url":"https://api.github.com/users/natashaj7/followers","following_url":"https://api.github.com/users/natashaj7/following{/other_user}","gists_url":"https://api.github.com/users/natashaj7/gists{/gist_id}","starred_url":"https://api.github.com/users/natashaj7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natashaj7/subscriptions","organizations_url":"https://api.github.com/users/natashaj7/orgs","repos_url":"https://api.github.com/users/natashaj7/repos","events_url":"https://api.github.com/users/natashaj7/events{/privacy}","received_events_url":"https://api.github.com/users/natashaj7/received_events","type":"User","site_admin":false},"body":"Create my decks view and place existing translation cards in Default deck. Change database to include deck functionality and hold translations within decks.","created_at":"2016-02-08T21:18:10Z","updated_at":"2016-02-09T17:59:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"938934149292818f3dab952d57e33fcf6e8fb163","assignee":{"login":"nworden","id":9059304,"avatar_url":"https://avatars.githubusercontent.com/u/9059304?v=3","gravatar_id":"","url":"https://api.github.com/users/nworden","html_url":"https://github.com/nworden","followers_url":"https://api.github.com/users/nworden/followers","following_url":"https://api.github.com/users/nworden/following{/other_user}","gists_url":"https://api.github.com/users/nworden/gists{/gist_id}","starred_url":"https://api.github.com/users/nworden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nworden/subscriptions","organizations_url":"https://api.github.com/users/nworden/orgs","repos_url":"https://api.github.com/users/nworden/repos","events_url":"https://api.github.com/users/nworden/events{/privacy}","received_events_url":"https://api.github.com/users/nworden/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19/commits","review_comments_url":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19/comments","review_comment_url":"https://api.github.com/repos/translation-cards/translation-cards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/translation-cards/translation-cards/issues/19/comments","statuses_url":"https://api.github.com/repos/translation-cards/translation-cards/statuses/bc8785afd9f0ed6ce07fa20ce785b4f140bf3cb4","head":{"label":"translation-cards:natasha_pat/collectionsUI","ref":"natasha_pat/collectionsUI","sha":"bc8785afd9f0ed6ce07fa20ce785b4f140bf3cb4","user":{"login":"translation-cards","id":16584545,"avatar_url":"https://avatars.githubusercontent.com/u/16584545?v=3","gravatar_id":"","url":"https://api.github.com/users/translation-cards","html_url":"https://github.com/translation-cards","followers_url":"https://api.github.com/users/translation-cards/followers","following_url":"https://api.github.com/users/translation-cards/following{/other_user}","gists_url":"https://api.github.com/users/translation-cards/gists{/gist_id}","starred_url":"https://api.github.com/users/translation-cards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translation-cards/subscriptions","organizations_url":"https://api.github.com/users/translation-cards/orgs","repos_url":"https://api.github.com/users/translation-cards/repos","events_url":"https://api.github.com/users/translation-cards/events{/privacy}","received_events_url":"https://api.github.com/users/translation-cards/received_events","type":"Organization","site_admin":false},"repo":{"id":49656131,"name":"translation-cards","full_name":"translation-cards/translation-cards","owner":{"login":"translation-cards","id":16584545,"avatar_url":"https://avatars.githubusercontent.com/u/16584545?v=3","gravatar_id":"","url":"https://api.github.com/users/translation-cards","html_url":"https://github.com/translation-cards","followers_url":"https://api.github.com/users/translation-cards/followers","following_url":"https://api.github.com/users/translation-cards/following{/other_user}","gists_url":"https://api.github.com/users/translation-cards/gists{/gist_id}","starred_url":"https://api.github.com/users/translation-cards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translation-cards/subscriptions","organizations_url":"https://api.github.com/users/translation-cards/orgs","repos_url":"https://api.github.com/users/translation-cards/repos","events_url":"https://api.github.com/users/translation-cards/events{/privacy}","received_events_url":"https://api.github.com/users/translation-cards/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/translation-cards/translation-cards","description":"","fork":false,"url":"https://api.github.com/repos/translation-cards/translation-cards","forks_url":"https://api.github.com/repos/translation-cards/translation-cards/forks","keys_url":"https://api.github.com/repos/translation-cards/translation-cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/translation-cards/translation-cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/translation-cards/translation-cards/teams","hooks_url":"https://api.github.com/repos/translation-cards/translation-cards/hooks","issue_events_url":"https://api.github.com/repos/translation-cards/translation-cards/issues/events{/number}","events_url":"https://api.github.com/repos/translation-cards/translation-cards/events","assignees_url":"https://api.github.com/repos/translation-cards/translation-cards/assignees{/user}","branches_url":"https://api.github.com/repos/translation-cards/translation-cards/branches{/branch}","tags_url":"https://api.github.com/repos/translation-cards/translation-cards/tags","blobs_url":"https://api.github.com/repos/translation-cards/translation-cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/translation-cards/translation-cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/translation-cards/translation-cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/translation-cards/translation-cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/translation-cards/translation-cards/statuses/{sha}","languages_url":"https://api.github.com/repos/translation-cards/translation-cards/languages","stargazers_url":"https://api.github.com/repos/translation-cards/translation-cards/stargazers","contributors_url":"https://api.github.com/repos/translation-cards/translation-cards/contributors","subscribers_url":"https://api.github.com/repos/translation-cards/translation-cards/subscribers","subscription_url":"https://api.github.com/repos/translation-cards/translation-cards/subscription","commits_url":"https://api.github.com/repos/translation-cards/translation-cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/translation-cards/translation-cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/translation-cards/translation-cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/translation-cards/translation-cards/issues/comments{/number}","contents_url":"https://api.github.com/repos/translation-cards/translation-cards/contents/{+path}","compare_url":"https://api.github.com/repos/translation-cards/translation-cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/translation-cards/translation-cards/merges","archive_url":"https://api.github.com/repos/translation-cards/translation-cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/translation-cards/translation-cards/downloads","issues_url":"https://api.github.com/repos/translation-cards/translation-cards/issues{/number}","pulls_url":"https://api.github.com/repos/translation-cards/translation-cards/pulls{/number}","milestones_url":"https://api.github.com/repos/translation-cards/translation-cards/milestones{/number}","notifications_url":"https://api.github.com/repos/translation-cards/translation-cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/translation-cards/translation-cards/labels{/name}","releases_url":"https://api.github.com/repos/translation-cards/translation-cards/releases{/id}","deployments_url":"https://api.github.com/repos/translation-cards/translation-cards/deployments","created_at":"2016-01-14T15:32:45Z","updated_at":"2016-01-14T15:56:43Z","pushed_at":"2016-02-08T23:43:37Z","git_url":"git://github.com/translation-cards/translation-cards.git","ssh_url":"git@github.com:translation-cards/translation-cards.git","clone_url":"https://github.com/translation-cards/translation-cards.git","svn_url":"https://github.com/translation-cards/translation-cards","homepage":null,"size":547,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"translation-cards:master","ref":"master","sha":"e8e2a66ae09e8a50275bed4da3f1648e63f2d861","user":{"login":"translation-cards","id":16584545,"avatar_url":"https://avatars.githubusercontent.com/u/16584545?v=3","gravatar_id":"","url":"https://api.github.com/users/translation-cards","html_url":"https://github.com/translation-cards","followers_url":"https://api.github.com/users/translation-cards/followers","following_url":"https://api.github.com/users/translation-cards/following{/other_user}","gists_url":"https://api.github.com/users/translation-cards/gists{/gist_id}","starred_url":"https://api.github.com/users/translation-cards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translation-cards/subscriptions","organizations_url":"https://api.github.com/users/translation-cards/orgs","repos_url":"https://api.github.com/users/translation-cards/repos","events_url":"https://api.github.com/users/translation-cards/events{/privacy}","received_events_url":"https://api.github.com/users/translation-cards/received_events","type":"Organization","site_admin":false},"repo":{"id":49656131,"name":"translation-cards","full_name":"translation-cards/translation-cards","owner":{"login":"translation-cards","id":16584545,"avatar_url":"https://avatars.githubusercontent.com/u/16584545?v=3","gravatar_id":"","url":"https://api.github.com/users/translation-cards","html_url":"https://github.com/translation-cards","followers_url":"https://api.github.com/users/translation-cards/followers","following_url":"https://api.github.com/users/translation-cards/following{/other_user}","gists_url":"https://api.github.com/users/translation-cards/gists{/gist_id}","starred_url":"https://api.github.com/users/translation-cards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/translation-cards/subscriptions","organizations_url":"https://api.github.com/users/translation-cards/orgs","repos_url":"https://api.github.com/users/translation-cards/repos","events_url":"https://api.github.com/users/translation-cards/events{/privacy}","received_events_url":"https://api.github.com/users/translation-cards/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/translation-cards/translation-cards","description":"","fork":false,"url":"https://api.github.com/repos/translation-cards/translation-cards","forks_url":"https://api.github.com/repos/translation-cards/translation-cards/forks","keys_url":"https://api.github.com/repos/translation-cards/translation-cards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/translation-cards/translation-cards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/translation-cards/translation-cards/teams","hooks_url":"https://api.github.com/repos/translation-cards/translation-cards/hooks","issue_events_url":"https://api.github.com/repos/translation-cards/translation-cards/issues/events{/number}","events_url":"https://api.github.com/repos/translation-cards/translation-cards/events","assignees_url":"https://api.github.com/repos/translation-cards/translation-cards/assignees{/user}","branches_url":"https://api.github.com/repos/translation-cards/translation-cards/branches{/branch}","tags_url":"https://api.github.com/repos/translation-cards/translation-cards/tags","blobs_url":"https://api.github.com/repos/translation-cards/translation-cards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/translation-cards/translation-cards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/translation-cards/translation-cards/git/refs{/sha}","trees_url":"https://api.github.com/repos/translation-cards/translation-cards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/translation-cards/translation-cards/statuses/{sha}","languages_url":"https://api.github.com/repos/translation-cards/translation-cards/languages","stargazers_url":"https://api.github.com/repos/translation-cards/translation-cards/stargazers","contributors_url":"https://api.github.com/repos/translation-cards/translation-cards/contributors","subscribers_url":"https://api.github.com/repos/translation-cards/translation-cards/subscribers","subscription_url":"https://api.github.com/repos/translation-cards/translation-cards/subscription","commits_url":"https://api.github.com/repos/translation-cards/translation-cards/commits{/sha}","git_commits_url":"https://api.github.com/repos/translation-cards/translation-cards/git/commits{/sha}","comments_url":"https://api.github.com/repos/translation-cards/translation-cards/comments{/number}","issue_comment_url":"https://api.github.com/repos/translation-cards/translation-cards/issues/comments{/number}","contents_url":"https://api.github.com/repos/translation-cards/translation-cards/contents/{+path}","compare_url":"https://api.github.com/repos/translation-cards/translation-cards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/translation-cards/translation-cards/merges","archive_url":"https://api.github.com/repos/translation-cards/translation-cards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/translation-cards/translation-cards/downloads","issues_url":"https://api.github.com/repos/translation-cards/translation-cards/issues{/number}","pulls_url":"https://api.github.com/repos/translation-cards/translation-cards/pulls{/number}","milestones_url":"https://api.github.com/repos/translation-cards/translation-cards/milestones{/number}","notifications_url":"https://api.github.com/repos/translation-cards/translation-cards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/translation-cards/translation-cards/labels{/name}","releases_url":"https://api.github.com/repos/translation-cards/translation-cards/releases{/id}","deployments_url":"https://api.github.com/repos/translation-cards/translation-cards/deployments","created_at":"2016-01-14T15:32:45Z","updated_at":"2016-01-14T15:56:43Z","pushed_at":"2016-02-08T23:43:37Z","git_url":"git://github.com/translation-cards/translation-cards.git","ssh_url":"git@github.com:translation-cards/translation-cards.git","clone_url":"https://github.com/translation-cards/translation-cards.git","svn_url":"https://github.com/translation-cards/translation-cards","homepage":null,"size":547,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19"},"html":{"href":"https://github.com/translation-cards/translation-cards/pull/19"},"issue":{"href":"https://api.github.com/repos/translation-cards/translation-cards/issues/19"},"comments":{"href":"https://api.github.com/repos/translation-cards/translation-cards/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/translation-cards/translation-cards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/translation-cards/translation-cards/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/translation-cards/translation-cards/statuses/bc8785afd9f0ed6ce07fa20ce785b4f140bf3cb4"}}}}