Skip to content

Commit d2170cf

Browse files
committed
cambios correctivos y comentados mensajes al debug
1 parent 64b6580 commit d2170cf

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,3 +507,24 @@ dist/main/tk/msgbox.tcl
507507
dist/main/tk/obsolete.tcl
508508
dist/main/tk/optMenu.tcl
509509
dist.rar
510+
codigo_fuente.rar
511+
libre_out.rar
512+
worksheet-data-inserter.rar
513+
.idea/.gitignore
514+
.idea/misc.xml
515+
.idea/modules.xml
516+
.idea/rSettings.xml
517+
.idea/vcs.xml
518+
.idea/worksheet-data-inserter.iml
519+
.idea/inspectionProfiles/profiles_settings.xml
520+
libre/main.exe
521+
licensias/COPYING-pyinstaller.txt
522+
licensias/electron.txt
523+
licensias/getmac.txt
524+
licensias/jquery-lincense.txt
525+
licensias/openpyxl.txt
526+
licensias/pikepdf- mozilla lincense 2.0.txt
527+
licensias/pypdf2 -bsd lincense.txt
528+
out/config.json
529+
out/glossary.txt
530+
out/main.exe

HGFExcelInserter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __searchAndSetHeaderParams(self):
122122
self.__wsTime = self.__reportDate.group(5)
123123
return None
124124
except Exception as err:
125-
print("An exception happened: "+str(err))
125+
#print("An exception happened: "+str(err))
126126
ebt.WriteLog(str(err))
127127
self.isError= True
128128

@@ -195,7 +195,7 @@ def insertAndFormatHeaderData(self):
195195
ws.print_title_rows = "1:3"
196196
ws.title = "RESULTADOS"
197197
elif ws['B3'].value != formatDataDic['RUT']:
198-
print("RUT from loaded worksheet doesn't match the one's PDF!")
198+
#print("RUT from loaded worksheet doesn't match the one's PDF!")
199199
ebt.WriteLog("Patient's RUT mismatch")
200200
self.isError= True
201201
else:

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! python3
2+
import logging
23
import sys
34
import getDatafromFiles as bt
45
import HGFExcelInserter as hgf
@@ -33,12 +34,11 @@ def newOrUpdatedWs():
3334
hgf.AdjustCalciumValue(ws,currentWS.getCurrentDateCoordinates())
3435
hgf.CreateRecycleWorkSheet(wb,ws,4)
3536

36-
if (len(sys.argv) >= 4 & (client.upper() in clients):
37+
if (len(sys.argv) >= 4) and (client.upper() in clients):
3738
# Get arguments from command line.
3839
_,glossaryPath,workSheetPath,*streamPathCollection=sys.argv
3940
if workSheetPath == 'none':
4041
workSheetPath = ''
41-
# TODO: don't overwrite files.
4242
glossary = open(glossaryPath, "r")
4343
gloss = bt.GetGlossary(glossary).getCollection()
4444
wb = bt.LoadOrCreateWorkBook(workSheetPath).getWorkBook()

0 commit comments

Comments
 (0)