mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 18:48:09 +00:00 
			
		
		
		
	Framework update, adding state to inventory tag, support for subscriber for inventory tag
This commit is contained in:
		| @@ -82,9 +82,9 @@ namespace OpenWifi{ | ||||
|             return SendList(Tags, SerialOnly); | ||||
|         } else if (HasParameter("subscriber",Arg) && !Arg.empty()) { | ||||
|             // looking for device(s) for a specific subscriber... | ||||
|             ProvObjects::InventoryTagVec Devices; | ||||
|             StorageService()->InventoryDB().GetRecords(0,100,Devices," subscriber='" + Arg + "'"); | ||||
|             return SendList(Devices,SerialOnly); | ||||
|             ProvObjects::InventoryTagVec Tags; | ||||
|             StorageService()->InventoryDB().GetRecords(0,100,Tags," subscriber='" + Arg + "'"); | ||||
|             return MakeJSONObjectArray("taglist", Tags, *this); | ||||
|         } else if (QB_.CountOnly) { | ||||
|             auto C = StorageService()->InventoryDB().Count(); | ||||
|             return ReturnCountOnly(C); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959