Commit d5601f99 authored by Alexandre Dulaunoy's avatar Alexandre Dulaunoy
Browse files

_id removed from the return list

parent 356b5081
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ def lookupcpe(cpeid=None):
def lastentries(limit=5, namelookup=False, rankinglookup=True):
  entries = []
  for item in collection.find({}).sort("Modified", -1).limit(limit):
    item.pop('_id')
    if not namelookup and rankinglookup is not True:
      entries.append(item)
    else: