I use the Google App Engine mapreduce to analyze some data. I am creating several counters that would like to create a simple google chart from my done_callback file. How to access the resulting counters from a callback?
def count_created_since(entity):
now = datetime.datetime.now()
delta = now-entity.created
for x in range(12):
start = 7*x
stop = 7*(x+1)
if delta.days >= start and delta.days < stop:
yield op.counters.Increment(str(x)+" weeks ago")
def my_callback(request):
source
share