Marthee commited on
Commit
2070f92
·
verified ·
1 Parent(s): 0cd855f

Update google_sheet_Legend.py

Browse files
Files changed (1) hide show
  1. google_sheet_Legend.py +4 -3
google_sheet_Legend.py CHANGED
@@ -72,9 +72,9 @@ def update_sheet(spreadsheetId, SimilarAreaDictionary, pdfpath):
72
  splittedpdfpath = re.split(r'[`\-=~!@#$%^&*()_+\[\]{};\'\\:"|<,/<>?]', pdfpath)
73
  if splittedpdfpath[-2].startswith('2.2') or splittedpdfpath[-2].startswith('2.1'):
74
  worksheet.set_dataframe(start='A1', df=SimilarAreaDictionary)
75
- if splittedpdfpath[-2].startswith('2.8'):
76
- DoorsLegend(SimilarAreaDictionary,spreadsheetId)
77
- return
78
 
79
  else:
80
  top_header_format = [
@@ -686,6 +686,7 @@ def deletefromlegend(deletedrows, SimilarAreaDictionarycopy, section, areaPermAr
686
 
687
  #########################
688
  def DoorsLegend(Dictionary,spreadsheetId):
 
689
  global worksheetw
690
  worksheetw.clear()
691
  top_header_format = [
 
72
  splittedpdfpath = re.split(r'[`\-=~!@#$%^&*()_+\[\]{};\'\\:"|<,/<>?]', pdfpath)
73
  if splittedpdfpath[-2].startswith('2.2') or splittedpdfpath[-2].startswith('2.1'):
74
  worksheet.set_dataframe(start='A1', df=SimilarAreaDictionary)
75
+ # if splittedpdfpath[-2].startswith('2.8'):
76
+ # DoorsLegend(SimilarAreaDictionary,spreadsheetId)
77
+ # return
78
 
79
  else:
80
  top_header_format = [
 
686
 
687
  #########################
688
  def DoorsLegend(Dictionary,spreadsheetId):
689
+ print('id',spreadsheetId)
690
  global worksheetw
691
  worksheetw.clear()
692
  top_header_format = [