Spaces:
Sleeping
Sleeping
Update google_sheet_Legend.py
Browse files- google_sheet_Legend.py +1 -1
google_sheet_Legend.py
CHANGED
|
@@ -136,7 +136,7 @@ def update_sheet(spreadsheetId, SimilarAreaDictionary, pdfpath):
|
|
| 136 |
[SimilarAreaDictionary['R'].iloc[i], SimilarAreaDictionary['G'].iloc[i], SimilarAreaDictionary['B'].iloc[i]]
|
| 137 |
for i in range(len(SimilarAreaDictionary))
|
| 138 |
]
|
| 139 |
-
elif splittedpdfpath[-2].startswith('3.2'):
|
| 140 |
colorsUsed = list(SimilarAreaDictionary['Color'])
|
| 141 |
rowsLen = len(SimilarAreaDictionary.values.tolist())
|
| 142 |
lastcell = worksheet.cell((rowsLen + 2, 1))
|
|
|
|
| 136 |
[SimilarAreaDictionary['R'].iloc[i], SimilarAreaDictionary['G'].iloc[i], SimilarAreaDictionary['B'].iloc[i]]
|
| 137 |
for i in range(len(SimilarAreaDictionary))
|
| 138 |
]
|
| 139 |
+
elif splittedpdfpath[-2].startswith('3.2') or splittedpdfpath[-2].startswith('3.3'):
|
| 140 |
colorsUsed = list(SimilarAreaDictionary['Color'])
|
| 141 |
rowsLen = len(SimilarAreaDictionary.values.tolist())
|
| 142 |
lastcell = worksheet.cell((rowsLen + 2, 1))
|