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})
def test(): a, b = sync_db.get_row() return json.dumps({"a": str(a).zfill(10), "b": b})
def test(): a, b = get_row() return {"a": str(a).zfill(10), "b": b}
def on_get(self, req, resp): a, b = get_row() resp.body = json.dumps({"a": str(a).zfill(10), "b": b})
def homepage(request): a, b = get_row() return JSONResponse({"a": str(a).zfill(10), "b": b})