mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 18:48:09 +00:00 
			
		
		
		
	Fixing device list for owanalytics
This commit is contained in:
		| @@ -27,10 +27,21 @@ namespace OpenWifi{ | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         std::sort(R.begin(),R.end()); | ||||
|         auto Last = std::unique(R.begin(),R.end()); | ||||
|         R.erase(Last,R.end()); | ||||
|         return R; | ||||
|  | ||||
|         std::vector<std::string>    SerialNumbers; | ||||
|  | ||||
|         for(const auto &device:R) { | ||||
|             ProvObjects::InventoryTag   IT; | ||||
|             if(StorageService()->InventoryDB().GetRecord("id",device,IT)) { | ||||
|                 SerialNumbers.push_back(IT.serialNumber); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         return SerialNumbers; | ||||
|     } | ||||
|  | ||||
|     void RESTAPI_venue_handler::DoGet() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959