from sanic import Sanic, Blueprint, response
helper = Blueprint('helper')


async def beautify(dataCursor):
    for doc in dataCursor:
        doc['id'] = str(doc['_id'])
        del doc['_id']
    return dataCursor

41ded5a3b6091dbeb8cc0bc847309dd653a3562f
<mask token>

<mask token>


async def beautify(dataCursor):
    for doc in dataCursor:
        doc['id'] = str(doc['_id'])
        del doc['_id']
    return dataCursor

<mask token>
helper = Blueprint('helper')


async def beautify(dataCursor):
    for doc in dataCursor:
        doc['id'] = str(doc['_id'])
        del doc['_id']
    return dataCursor

from sanic import Sanic, Blueprint, response
helper = Blueprint('helper')


async def beautify(dataCursor):
    for doc in dataCursor:
        doc['id'] = str(doc['_id'])
        del doc['_id']
    return dataCursor
