예제 #1
0
def external_db_test():
    import requests
    requests.get('http://external_service:8001/test/1')
    a, b = sync_db.write_row()
    a, b = sync_db.get_row()
    return json.dumps({"a": str(a).zfill(10), "b": b})
예제 #2
0
def test():
    a, b = sync_db.get_row()
    return json.dumps({"a": str(a).zfill(10), "b": b})
예제 #3
0
def test():
    a, b = get_row()
    return {"a": str(a).zfill(10), "b": b}
예제 #4
0
 def on_get(self, req, resp):
     a, b = get_row()
     resp.body = json.dumps({"a": str(a).zfill(10), "b": b})
예제 #5
0
def homepage(request):
    a, b = get_row()
    return JSONResponse({"a": str(a).zfill(10), "b": b})