mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-30 18:18:03 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -236,7 +236,7 @@ namespace OpenWifi {
|
|||||||
bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector<std::string> &devices) {
|
bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector<std::string> &devices) {
|
||||||
try {
|
try {
|
||||||
std::vector<ProvObjects::InventoryTag> device_list;
|
std::vector<ProvObjects::InventoryTag> device_list;
|
||||||
if(GetRecords(1, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
|
if(GetRecords(0, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
|
||||||
for(auto &i:device_list) {
|
for(auto &i:device_list) {
|
||||||
devices.push_back(i.serialNumber);
|
devices.push_back(i.serialNumber);
|
||||||
}
|
}
|
||||||
@@ -258,7 +258,7 @@ namespace OpenWifi {
|
|||||||
bool InventoryDB::GetDevicesUUIDForVenue(const std::string &venue_uuid, std::vector<std::string> &devices) {
|
bool InventoryDB::GetDevicesUUIDForVenue(const std::string &venue_uuid, std::vector<std::string> &devices) {
|
||||||
try {
|
try {
|
||||||
std::vector<ProvObjects::InventoryTag> device_list;
|
std::vector<ProvObjects::InventoryTag> device_list;
|
||||||
if(GetRecords(1, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
|
if(GetRecords(0, 1000, device_list, fmt::format(" venue='{}' ", venue_uuid))) {
|
||||||
for(auto &i:device_list) {
|
for(auto &i:device_list) {
|
||||||
devices.push_back(i.info.id);
|
devices.push_back(i.info.id);
|
||||||
}
|
}
|
||||||
@@ -279,7 +279,7 @@ namespace OpenWifi {
|
|||||||
|
|
||||||
bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector<ProvObjects::InventoryTag> &devices) {
|
bool InventoryDB::GetDevicesForVenue(const std::string &venue_uuid, std::vector<ProvObjects::InventoryTag> &devices) {
|
||||||
try {
|
try {
|
||||||
return GetRecords(1, 1000, devices, fmt::format(" venue='{}' ", venue_uuid));
|
return GetRecords(0, 1000, devices, fmt::format(" venue='{}' ", venue_uuid));
|
||||||
} catch(const Poco::Exception &E) {
|
} catch(const Poco::Exception &E) {
|
||||||
Logger().log(E);
|
Logger().log(E);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user