Improve application retrieval logic
This commit is contained in:
		
							parent
							
								
									792c416274
								
							
						
					
					
						commit
						b36313e0af
					
				
					 1 changed files with 0 additions and 5 deletions
				
			
		|  | @ -68,11 +68,6 @@ class ApplicationController: | ||||||
|     def fetch(proxies: Optional[dict] = None): |     def fetch(proxies: Optional[dict] = None): | ||||||
| 
 | 
 | ||||||
|         applications = WebServiceApiService.get_applications(proxies) |         applications = WebServiceApiService.get_applications(proxies) | ||||||
|         supported_applications = [] |  | ||||||
| 
 |  | ||||||
|         for application in applications: |  | ||||||
|             if application.code in ('firefox', 'brave', 'chromium'): |  | ||||||
|                 supported_applications.append(application) |  | ||||||
| 
 | 
 | ||||||
|         Application.truncate() |         Application.truncate() | ||||||
|         Application.save_many(applications) |         Application.save_many(applications) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue