def one(method):
 def loop(method, self, *args, **kwargs):
  result = [method(rec, *args, **kwargs) for rec in self]
  return aggregate(method, result, self)
 wrapper = decorator(loop, method)
 wrapper._api = 'one'
 return wrapper

def one ( method ) : def loop ( method , self , * args , ** kwargs ) : result = [ method ( rec , * args , ** kwargs ) for rec in self ] return aggregate ( method , result , self ) wrapper = decorator ( loop , method ) wrapper . _api = 'one' return wrapper
one returns a single game matching the given criteria .