{"action":"opened","issue":{"url":"https://api.github.com/repos/e1r0nd/LearnWords/issues/48","repository_url":"https://api.github.com/repos/e1r0nd/LearnWords","labels_url":"https://api.github.com/repos/e1r0nd/LearnWords/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/e1r0nd/LearnWords/issues/48/comments","events_url":"https://api.github.com/repos/e1r0nd/LearnWords/issues/48/events","html_url":"https://github.com/e1r0nd/LearnWords/issues/48","id":191586622,"number":48,"title":"Move of words from 'Learn' mode to 'Repeat' mode seems to be broken","user":{"login":"hhzl","id":1112023,"avatar_url":"https://avatars.githubusercontent.com/u/1112023?v=3","gravatar_id":"","url":"https://api.github.com/users/hhzl","html_url":"https://github.com/hhzl","followers_url":"https://api.github.com/users/hhzl/followers","following_url":"https://api.github.com/users/hhzl/following{/other_user}","gists_url":"https://api.github.com/users/hhzl/gists{/gist_id}","starred_url":"https://api.github.com/users/hhzl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhzl/subscriptions","organizations_url":"https://api.github.com/users/hhzl/orgs","repos_url":"https://api.github.com/users/hhzl/repos","events_url":"https://api.github.com/users/hhzl/events{/privacy}","received_events_url":"https://api.github.com/users/hhzl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-24T20:17:16Z","updated_at":"2016-11-24T20:17:16Z","closed_at":null,"body":"Some people testing the app have reported that the 'Repeat' mode seems not to work for words which have been moved from the 'Learn' mode to the 'Repeat' mode.\r\n\r\n**Reason**\r\nThis depends on the fact that a word which is in the learn mode gets a new date put on it which is **one day later**.  \r\n\r\nIt has to do with this code\r\nhttps://github.com/e1r0nd/LearnWords/blob/master/js/actions/actions.js#L152\r\n````\r\n          actionWord: function(step, reindex) {\r\n                if (step) {\r\n                    var word = {\r\n                        index: Learn.wordsLearn[Learn.currentIndex].index,\r\n                        word: Learn.wordsLearn[Learn.currentIndex].word,\r\n                        translate: Learn.wordsLearn[Learn.currentIndex].translate,\r\n                        step: step,\r\n                        date: (step == 1) ? (Utils.getToday() + Utils.delay * Settings.params.first) : 0\r\n                    };\r\n\r\n                    LW.db.storeItem(LW.db.name+'-' + Learn.wordsLearn[Learn.currentIndex].index, word); //save word\r\n\r\n                    if (reindex) {\r\n                        Learn.wordsLearn.splice(Learn.currentIndex, 1); //remove from index\r\n                        Learn.recountIndexLearn();\r\n                    } else {\r\n                        Learn.currentIndex++;\r\n                    }\r\n                } else {\r\n                    Learn.currentIndex++;\r\n                }\r\n\r\n                if (Learn.currentIndex >= Learn.wordsLearn.length) {\r\n                    Learn.currentIndex = 0;\r\n                }\r\n                Learn.showWord();\r\n            },\r\n````\r\n\r\n**Solution**\r\nIt would be better if the date is of today minus a small amount so that the word shows up in the Repeat tab.\r\n       \r\n"}}
{"actor":{"display_login":"hhzl"}}