def numToInfo(number):
    info = {}
    userid, user = getUser.get(number)
    # queries the database for the user object (MongoDB database)
    info = {'name' : user['name'], 'id' : userid, "addresses" : user['addresses']}
    info['demo'] = user['name'] == 'Demo'
    return info
def numToInfo(number):
    info = {}
    userid, user = getUser.get(number)
    # queries the database for the user object (MongoDB database)
    info = {'name': user['name'], 'id': userid, "addresses": user['addresses']}
    info['demo'] = user['name'] == 'Demo'
    return info
def idToInfo(number):
    num, user = getUser.get(number)
    info = {}
    return {'id': num, 'addresses': user['addresses']}
Exemple #4
0
def idToInfo(number):
    # gets user info from db, same as 9000
    num, user = getUser.get(number)
    info = {}
    return {'id': num, 'addresses': user['addresses']}
def idToInfo(number):
    # gets user object from DB, as usual
    return getUser.get(number)[1]
def idToInfo(number):
    # gets user object from DB, as usual
    return getUser.get(number)[1]
def idToInfo(number):
    # gets user info from db, same as 9000
    num, user = getUser.get(number)
    info = {}
    return {'id' : num, 'addresses' : user['addresses']}