ismop / dap

3 stars 0 forks source link

Threat levels REST api don't take into account threat assessment run start and end date #185

Open mkasztelnik opened 7 years ago

mkasztelnik commented 7 years ago

from and to are compared to ThreatAssessment created_at field which is bad. For example if we run threat level calculations for past results this REST api will return invalid data. To fix this problem ThreatAssesmentRun start or end dates should be taken into account.