Commit 5ecc58d8 authored by Alexandre Dulaunoy's avatar Alexandre Dulaunoy
Browse files

Merge pull request #96 from adulau/master

Remove _id from ranking output
parents 096ea7c9 8679946b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
#
# Software is free software released under the "Modified BSD license"
#
# Copyright (c) 2012-2013 	Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2012-2015 	Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2015 		Pieter-Jan Moreels - pieterjan.moreels@gmail.com

# Imports
@@ -94,6 +94,7 @@ def listranking(format='json'):
    ranks = []
    for x in r.find({}):
        if format == "json":
            x.pop('_id')
            ranks.append(x)
        else:
            ranks.append(x['cpe'] + " " + str(x['rank']))