diff options
Diffstat (limited to 'server/src/queryhandlerpracro.cc')
-rw-r--r-- | server/src/queryhandlerpracro.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/queryhandlerpracro.cc b/server/src/queryhandlerpracro.cc index d617e69..e95d4ff 100644 --- a/server/src/queryhandlerpracro.cc +++ b/server/src/queryhandlerpracro.cc @@ -32,10 +32,12 @@ #include "configuration.h" -QueryHandlerPracro::QueryHandlerPracro(Database &_db, std::string cpr) +QueryHandlerPracro::QueryHandlerPracro(Database &_db, std::string cpr, + std::string sessionid) : db(_db) { this->cpr = cpr; + this->sessionid = sessionid; } QueryResult QueryHandlerPracro::exec(Query &query) @@ -56,7 +58,7 @@ QueryResult QueryHandlerPracro::exec(Query &query) oldest = time(NULL) - Conf::db_max_ttl; } - Values values = db.getValues(cpr, fields, ""/*no session*/, oldest); + Values values = db.getValues(cpr, fields, sessionid, oldest); if(values.find(field) != values.end()) { std::string value = values[field].value; |