mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 02:27:52 +00:00 
			
		
		
		
	Adding locations for venue.
This commit is contained in:
		| @@ -239,12 +239,13 @@ namespace OpenWifi { | ||||
|     inline void GetLocationsForVenue(const std::string &ID, std::vector<triplet_t> & IDs) { | ||||
|         ProvObjects::Venue  Existing; | ||||
|         if(StorageService()->VenueDB().template GetRecord("id",ID,Existing)) { | ||||
|             if(!Existing.location.empty()) { | ||||
|                 AddLocationTriplet(Existing.location,IDs); | ||||
|             } | ||||
|             if(!Existing.parent.empty()) { | ||||
|                 GetLocationsForVenue(Existing.parent,IDs); | ||||
|             } | ||||
|             ProvObjects::Entity E; | ||||
|             if(StorageService()->EntityDB().GetRecord("id", Existing.entity, E)) { | ||||
|                 AddLocationTriplet(E.locations,IDs); | ||||
|             } | ||||
|             return; | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959