Getting report details takes a long time
When the report database is large, getting report details takes a long time and the report server uses gigabytes of memory.

diff --git a/viewer_server/client_db_access_handler.py b/viewer_server/client_db_access_handler.py
index 38828d3a..b51b18cb 100644
--- a/viewer_server/client_db_access_handler.py
+++ b/viewer_server/client_db_access_handler.py
@@ -452,7 +452,7 @@ class ThriftRequestHandler():
                                         filePath=file_path))
 
             reportsToBuild = session.query(ReportsToBuildActions)\\
-                                .filter(ReportsToBuildActions.report_id == Report.id)
+                                .filter(ReportsToBuildActions.report_id == report.id)
 
             buildTargets = []
             if reportsToBuild:
['viewer_server/client_db_access_handler.py']