mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-29 18:02:29 +00:00
Adding preferences.
This commit is contained in:
@@ -213,7 +213,6 @@ namespace OpenWifi::RESTAPI_utils {
|
||||
Obj.set(Field,A);
|
||||
}
|
||||
|
||||
|
||||
template<typename T> void field_to_json(Poco::JSON::Object &Obj,
|
||||
const char *Field,
|
||||
const T &V,
|
||||
|
||||
@@ -32,7 +32,10 @@ namespace OpenWifi {
|
||||
Poco::Data::Keywords::use(Id);
|
||||
Select.execute();
|
||||
|
||||
std::cout << " 1:" << R.get<0>() << " 2:" << R.get<1>() << " 3:" << R.get<2>() << std::endl;
|
||||
|
||||
Convert(R,P);
|
||||
|
||||
return true;
|
||||
} catch (const Poco::Exception &E) {
|
||||
Logger_.log(E);
|
||||
@@ -51,8 +54,11 @@ namespace OpenWifi {
|
||||
};
|
||||
|
||||
P.modified = time(nullptr);
|
||||
|
||||
std::string Data = OpenWifi::RESTAPI_utils::to_string(P.data);
|
||||
|
||||
std::cout << " >>> " << Data << std::endl;
|
||||
|
||||
InsertOrUpdate << ConvertParams(InsertOrReplace),
|
||||
Poco::Data::Keywords::use(P.id),
|
||||
Poco::Data::Keywords::use(P.modified),
|
||||
|
||||
Reference in New Issue
Block a user