[SERVER] return total/true_positive discovery numbers.
@@ -306,7 +306,8 @@ def get_repos():
repos = c.get_repos()
for repo in repos:
- repo['lendiscoveries'] = c.get_discoveries_count(repo['url'])
+ repo['total'] = c.get_discoveries_count(repo['url'])
+ repo['TP'] = c.get_discoveries_count(repo['url'], state='new')
repo['scan_active'] = False
if repo['url'] in active_scans:
repo['scan_active'] = True
@@ -434,6 +435,7 @@ def update_similar_discoveries():
else:
return 'OK', 200
+
jwt = JWTManager(app)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
