@ -19,33 +19,9 @@ from fastapi import Depends
from fastapi . responses import PlainTextResponse
from fastapi . responses import PlainTextResponse
from fastapi . responses import FileResponse
from fastapi . responses import FileResponse
# Подключени файлов связанных с роботом-ка др о вико м01
@app.get ( path = " /HR_officer01/questions " , tags = [ " HR_officer01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_officer01 \\ Questions.csv " ) )
@app.get ( path = " /HR_officer01/results " , tags = [ " HR_officer01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_officer01 \\ All_results.csv " ) )
@app.get ( path = " /HR_officer01/logs " , tags = [ " HR_officer01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_officer01 \\ log.txt " ) )
@app.get ( path = " /HR_officer01/scripts " , tags = [ " HR_officer01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_officer01 \\ HR_officer01.js " ) )
@app.get ( path = " /HR_officer01/styles " , tags = [ " HR_officer01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_officer01 \\ HR_officer01.css " ) )
# Подключени файлов связанных с роботом-ка зна че е м01
@app.get ( path = " /Treasurer01/scripts " , tags = [ " Treasurer01 " ] )
def get_file ( ) :
return FileResponse ( " Demo \\ Treasurer01 \\ Treasurer01.js " )
# Пример создания функции на сервере (FASTAPI) /test/threads
# Пример создания функции на сервере (FASTAPI) /test/threads
@app.get ( path = " /test/threads " , tags = [ " Test " ] , response_class = PlainTextResponse )
@app.get ( path = " /test/threads " , tags = [ " Test " ] , response_class = PlainTextResponse )
@ -82,11 +58,7 @@ else:
# Restore DUMP
# Restore DUMP
Orchestrator . OrchestratorSessionRestore ( inGSettings = gSettings )
Orchestrator . OrchestratorSessionRestore ( inGSettings = gSettings )
# Autoinit control panels starts with CP_
# Autoinit control panels starts with CP_
lPyModules = Orchestrator . OrchestratorPySearchInit ( inGlobPatternStr = " ControlPanel \\ CP_*.py " , inDefStr = " SettingsUpdate " , inDefArgNameGSettingsStr = " inGSettings " , inAsyncInitBool = True )
lPyModules = Orchestrator . OrchestratorPySearchInit ( inGlobPatternStr = " Demo \\ * \\ config.py " , inAsyncInitBool = True )
lCPManager = Orchestrator . Managers . ControlPanel ( inControlPanelNameStr = " HR_officer01ControlPanel " ,
inRefreshHTMLJinja2TemplatePathStr = CrossOS . PathStr ( " D: \\ For work \\ RPA \\ OpenRPA \\ Orchestrator \\ Demo \\ HR_officer01 \\ index.html " ) , inJinja2TemplateRefreshBool = True )
lCPManager = Orchestrator . Managers . ControlPanel ( inControlPanelNameStr = " Treasurer01ControlPanel " ,
inRefreshHTMLJinja2TemplatePathStr = CrossOS . PathStr ( " D: \\ For work \\ RPA \\ OpenRPA \\ Orchestrator \\ Demo \\ Treasurer01 \\ index.html " ) , inJinja2TemplateRefreshBool = True )
# Call the orchestrator def
# Call the orchestrator def
Orchestrator . Orchestrator ( inGSettings = gSettings , inDumpRestoreBool = False )
Orchestrator . Orchestrator ( inGSettings = gSettings , inDumpRestoreBool = False )