|
I shouldn't have waited this long to seek help on this but better late than never right? Here is my problem: In the previous version of add_to_index procedure, we were checking to see if a keyword being added marches the on in the index and then if that is true, add the url. Now, am a little unsure of the problem in 4.6. Am I checking to see if the url is already there and if so, do not add it and if not so, add it? I know I need to modify the existing code. Which lines should remain intact? Should I still check the keyword marching and then check the url existence? Any hints will really help! Thanks. |
|
Hey there, better late than never. The HW asks you to
So, where before when we added a keyword, we might get duplicate URLs in list that is returned because we never looked to see if the url we are adding is already associated with that keyword. You might play with the original code to see that happen. Now you want to change it so that the url just appears once for that keyword. So yea, if you found the keyword, is the url already in that list? What will you do if is it? |
|
http://www.udacity-forums.com/cs101/questions/38276/homework-47-test-cases these test cases will work for 4.6 too..just avoid calling record_user_click() proc |
|
Let me try that @jesyspa and then update you before it is too late here. |