@ -1,7 +1,7 @@
splitter1 = ' Рабочий процесс '
splitter2 = ' Пример доступных данных '
splitter3 = ' Пример запуска роботов '
title = ' Робот-к адровик'
title = ' К адровик'
introHeader = ' Применение: '
introText = ' Робот-кадровик помогает проводить отбор кандидатов '
@ -47,7 +47,7 @@ html = f'''<!doctype html>
< head >
< title > Test < / title >
< link rel = " stylesheet " href = " /HR_ officer 01/styles" >
< link rel = " stylesheet " href = " /HR_ 01/styles" >
< / head >
@ -160,12 +160,45 @@ html = f'''<!doctype html>
< / div >
< script src = " /HR_ officer 01/scripts" > < / script >
< script src = " /HR_ 01/scripts" > < / script >
< script type = " text/javascript " src = " https://viewer.diagrams.net/js/viewer-static.min.js " > < / script >
< / body >
< / html > '''
with open ( ' index.html ' , ' w ' , encoding = ' UTF-8 ' ) as file :
from pyOpenRPA . Tools import CrossOS
from pyOpenRPA import Orchestrator # Import orchestrator main
from pyOpenRPA . Orchestrator . Server import app
import threading
from fastapi import Depends
from fastapi . responses import PlainTextResponse
from fastapi . responses import FileResponse
# Подключени файлов связанных с роботом-ка др о вико м01
@app.get ( path = " /HR_01/questions " , tags = [ " HR_01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_01 \\ Questions.csv " ) )
@app.get ( path = " /HR_01/results " , tags = [ " HR_01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_01 \\ All_results.csv " ) )
@app.get ( path = " /HR_01/logs " , tags = [ " HR_01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_01 \\ log.txt " ) )
@app.get ( path = " /HR_01/scripts " , tags = [ " HR_01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_01 \\ HR_officer01.js " ) )
@app.get ( path = " /HR_01/styles " , tags = [ " HR_01 " ] )
def get_file ( ) :
return FileResponse ( CrossOS . PathStr ( " Demo \\ HR_01 \\ HR_officer01.css " ) )
lCPManager = Orchestrator . Managers . ControlPanel ( inControlPanelNameStr = " HR_officer01ControlPanel " ,
inRefreshHTMLJinja2TemplatePathStr = CrossOS . PathStr ( " Demo \\ HR_01 \\ index.html " ) , inJinja2TemplateRefreshBool = True )
with open ( CrossOS . PathStr ( " Demo \\ HR_01 \\ index.html " ) , ' w ' , encoding = ' UTF-8 ' ) as file :
file . write ( html )