Skip to content

Commit

Permalink
GSvarServer: output cache queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntolog committed Dec 17, 2024
1 parent 7c8b300 commit a5277a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cppREST/ServerDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,10 @@ QJsonDocument ServerDB::getFileLocation(const QString filename_with_path, const
QSqlQuery query = db_->exec("SELECT * FROM file_locations WHERE (filename_with_path = \"" + filename_with_path + "\" AND type = \"" + type + "\" AND locus = \"" + locus + "\" AND multiple_files=" + QString::number(static_cast<int>(multiple_files)) + " AND return_if_missing=" + QString::number(static_cast<int>(return_if_missing)) + ")");
if (query.next())
{
int index_json_content = query.record().indexOf("json_content");
int index_json_content = query.record().indexOf("json_content");
Log::error("-----------");
Log::error(query.value(index_json_content).toString());
Log::error("-----------");
return QJsonDocument::fromJson(query.value(index_json_content).toString().toLocal8Bit());
}
return QJsonDocument();
Expand Down

0 comments on commit a5277a7

Please sign in to comment.