domain切替バグ修正
This commit is contained in:
@@ -260,9 +260,9 @@ def updateappjscss(app,uploads,c:config.KINTONE_ENV):
|
||||
r = httpx.put(url,headers=headers,data=json.dumps(data))
|
||||
return r.json()
|
||||
|
||||
def createappjs(app):
|
||||
def createappjs(domainid,app):
|
||||
db = SessionLocal()
|
||||
flows = get_flows_by_app(db,app)
|
||||
flows = get_flows_by_app(db,domainid,app)
|
||||
db.close()
|
||||
content={}
|
||||
for flow in flows:
|
||||
@@ -516,12 +516,12 @@ async def updateprocessfromexcel(app:str,env = Depends(getkintoneenv)):
|
||||
|
||||
|
||||
@r.post("/createjstokintone",)
|
||||
async def createjstokintone(app:str,env = Depends(getkintoneenv)):
|
||||
async def createjstokintone(app:str,env:config.KINTONE_ENV = Depends(getkintoneenv)):
|
||||
|
||||
try:
|
||||
jscs=[]
|
||||
files=[]
|
||||
files.append(createappjs(app))
|
||||
files.append(createappjs(env.DOMAIN_ID, app))
|
||||
files.append('Temp\\alc_runtime.js')
|
||||
for file in files:
|
||||
upload = uploadkintonefiles(file,env)
|
||||
|
||||
@@ -107,6 +107,7 @@ async def flow_list(
|
||||
db=Depends(get_db),
|
||||
):
|
||||
domain = get_activedomain(db, user.id)
|
||||
print("domain=>",domain)
|
||||
flows = get_flows_by_app(db, domain.id, appid)
|
||||
return flows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user