Spaces:
Sleeping
Sleeping
Update SchedBuilderUtyModule.py
Browse files- SchedBuilderUtyModule.py +3 -2
SchedBuilderUtyModule.py
CHANGED
|
@@ -326,7 +326,9 @@ def makeEEdict(ftInfoTbl,tempInfoTbl,wkHrs=40,tp='id'):
|
|
| 326 |
eeDict[anEE.eeID]=anEE
|
| 327 |
elif tp=='nm':
|
| 328 |
#Just need peoples names and EEID's linked from this.. enter dummy data for seniority, training, etc
|
| 329 |
-
|
|
|
|
|
|
|
| 330 |
eeDict[anEE.dispNm().lower().replace(' ','-')]=anEE
|
| 331 |
return eeDict
|
| 332 |
|
|
@@ -392,7 +394,6 @@ def translate_Visual_Template(flNm,ftRef=None,tRef=None):
|
|
| 392 |
"""Takes in an assignment list file, and composes the All_Slots table and Assignment_List table by reading the Visual Template"""
|
| 393 |
ftInf,tInf=getEEinfo(ftRef,tRef)
|
| 394 |
eeDict=makeEEdict(ftInf,tInf,tp='nm')
|
| 395 |
-
print(eeDict.keys())
|
| 396 |
# return eeDict
|
| 397 |
wb=pyxl.load_workbook(flNm)
|
| 398 |
ws=wb['Visual_Template']
|
|
|
|
| 326 |
eeDict[anEE.eeID]=anEE
|
| 327 |
elif tp=='nm':
|
| 328 |
#Just need peoples names and EEID's linked from this.. enter dummy data for seniority, training, etc
|
| 329 |
+
if dtaTbl==tempInfoTbl:sen=100000
|
| 330 |
+
else: sen=1
|
| 331 |
+
anEE=ee(sen,row[1].lower().strip(),int(row[2]),row[3],row[4],row[5],row[8]+wkHrs,skills=[])
|
| 332 |
eeDict[anEE.dispNm().lower().replace(' ','-')]=anEE
|
| 333 |
return eeDict
|
| 334 |
|
|
|
|
| 394 |
"""Takes in an assignment list file, and composes the All_Slots table and Assignment_List table by reading the Visual Template"""
|
| 395 |
ftInf,tInf=getEEinfo(ftRef,tRef)
|
| 396 |
eeDict=makeEEdict(ftInf,tInf,tp='nm')
|
|
|
|
| 397 |
# return eeDict
|
| 398 |
wb=pyxl.load_workbook(flNm)
|
| 399 |
ws=wb['Visual_Template']
|