mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #259 from dalf/fix_checker
[fix] searx.search.checker.get_result() always return a dict
This commit is contained in:
		
						commit
						0b0071af00
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -36,10 +36,11 @@ def _get_every(): | |||
|     return _get_interval(every, 'checker.scheduling.every is not a int or list') | ||||
| 
 | ||||
| 
 | ||||
| def get_result():  # pylint: disable=inconsistent-return-statements | ||||
| def get_result(): | ||||
|     serialized_result = storage.get_str(CHECKER_RESULT) | ||||
|     if serialized_result is not None: | ||||
|         return json.loads(serialized_result) | ||||
|     return {'status': 'unknown'} | ||||
| 
 | ||||
| 
 | ||||
| def _set_result(result, include_timestamp=True): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Alexandre Flament
						Alexandre Flament