Skip to content

Commit

Permalink
Added functionality : errors in excel file are highlighted with red c…
Browse files Browse the repository at this point in the history
…olour
  • Loading branch information
tayal007 authored Apr 28, 2017
1 parent fef9be8 commit 868af56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqlite version/excelwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def loop() :

universal.row = universal.row + 1
except Exception as e:
universal.logflag=1
logwriter.logwrite("Excelfile : "+str(e)+" on page "+str(int(universal.filename)+1))
universal.logflag = 1


6 changes: 5 additions & 1 deletion sqlite version/sqlitewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def init():
"No_of_Claims INT,"+
"International_Classification varchar(100),"+
"Priority_Document_No varchar(70),"+
"Priority_date varchar(100),"+
"Priority_date DATE,"+
"Name_of_Priority_country varchar(70),"+
"International_Publication_No varchar(70),"+
"International_Application_No varchar(70),"+
Expand All @@ -66,6 +66,7 @@ def loop():
try:
transform("Date of filing of Application")
transform("Publication Date")
transform("Priority Date")
transform("IAFiling Date")
transform("IBFiling Date")
transform("ICFiling Date")
Expand Down Expand Up @@ -115,3 +116,6 @@ def loop():
except Exception as e:
logwriter.logwrite("MySQL: "+str(e)+" on page "+str(int(universal.filename)+1))
universal.logflag = 1
Format = universal.workbook.add_format()
Format.set_font_color('red')
universal.worksheet.set_row(universal.row, None, Format)

0 comments on commit 868af56

Please sign in to comment.