It seems very random. I have already limited the search result to 10 nos. only by
@app.route("/search") def search():
I found the same issue in the staff's solution. I just want to know why or which lines of code create this behaviour.
Moreover, I found my article results different to the staff's articles. Is it due to my google account setting? It seems to me that the news are actually related to the postal code location, but different set of articles are selected for me. I limited the no. of articles to be displayed in Google Map Info to be less than 5. But I don't think it is the problem, as I checked the staff's solutions via http://pset8.cs50.net/articles?geo=02138 and mine via https://ide50-username.cs50.io/articles?geo=02138. They are just different.