|  | Commit message (Collapse) | Author | Lines | 
|---|
|  |  | 
|  |  | 
|  |  | 
|  | After the wiki pages adjustment to the resources page, these two urls are needing to be updated to point to the new correct locations for each page.
Tools will be under resources, and Asking Good Questions is a guide, so will be under Guides. | 
|  | - Added regex back to sub and split by non-alphabet.
- Now use two pointers to move from words to words. | 
|  |  | 
|  | - Since it is returning as soon as there are suggestions found for a threshold, this will give a better reflection of what the bot thinks user is searching for. | 
|  | - Added a regex to remove non-alphabet ( `[^a-z]` with `re.IGNORECASE` ) | 
|  | - Matching scores will be calculated once now and stored in the dict `scores`.
- Allow `_get_suggestions()` to go through a list of score threshold and return the first list of matching tags that's not empty and above the threshold. This avoid calling the function multiple time like before ( `self._get_suggestions(tag_name, 100) or self._get_suggestions(tag_name, 80)` for example, is calling this function twice, and is inefficient )
- Deleted commented line.
- Added `typing` module for more typehints. | 
|  | - Changed type of `self._last_fetch` to `float` and give it the initial value of `0.0` instead of `None`
- Assigned `time.time()` to `time_now` to avoid calling this function twice.
- Added `self._last_fetch = time_now` after calling the api call. | 
|  | Previously used a leading underscore, but that's usually meant for non-used names. | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  |