You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if two or more solutions to the same problem are found, then we override the existing solution with the new one crawled. But the crawling order is from newest to oldest. So, in this case, it will override the new solution with the old solution, which is not what we want.
If we crawl the solutions and multiple accepted solutions (with same file extension) are found for a problem only the solution which came first will be saved (latest at that time).
But if we crawl again and an even newer file is found, it also won't overwrite the file saved in the previous session.
Possible solutions:
Store last crawl time and only overwrite if created_at of the current file is greater than last crawl time.
Store created_at of each file and only overwrite if created_at of the current file is greater than the created_at of the last solution.
Right now, if two or more solutions to the same problem are found, then we override the existing solution with the new one crawled. But the crawling order is from newest to oldest. So, in this case, it will override the new solution with the old solution, which is not what we want.
Steps to reproduce the behavior:
Solution:
We also need to handle the offset and limit feature in this case.
The text was updated successfully, but these errors were encountered: