backend/sweettweet/api.py
def api_getGlucoseData():
    '''
    Return 12 h of cgm data from a user to prepopulate the glucose
    visualization component.
    '''
    SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
    data_url = os.path.join(SITE_ROOT, 'static/data', 'glucose_data_example_vega.json')

    data = json.load(open(data_url))

    resp = jsonify({'data' : data})
    resp.status_code = 200

    return resp

    Return 12 h of cgm data from a user to prepopulate the glucose
    visualization component.
    
Return 12 h of cgm data from a user to prepopulate the glucose
visualization component.
Return 12 h of cgm data from a user to prepopulate the glucose visualization component .
def api_getGlucoseData():
    SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
    data_url = os.path.join(SITE_ROOT, 'static/data', 'glucose_data_example_vega.json')
    data = json.load(open(data_url))
    resp = jsonify({'data' : data})
    resp.status_code = 200
    return resp
def api_getGlucoseData ( ) : SITE_ROOT = os . path . realpath ( os . path . dirname ( __file__ ) ) data_url = os . path . join ( SITE_ROOT , 'static/data' , 'glucose_data_example_vega.json' ) data = json . load ( open ( data_url ) ) resp = jsonify ( { 'data' : data } ) resp . status_code = 200 return resp
Return 12 h of cgm data from a user to prepopulate the glucose
visualization component.
Return 12 h of cgm data from a user to prepopulate the glucose visualization component .
'''
    Return 12 h of cgm data from a user to prepopulate the glucose
    visualization component.
    '''