Compare commits
2 Commits
4f8d2d1567
...
ba265ca0fb
Author | SHA1 | Date |
---|---|---|
|
ba265ca0fb | |
|
2768b6d1b5 |
|
@ -2074,6 +2074,11 @@ class NeutralAudit:
|
|||
audit_df = self.update_audit_df(df, audit_df)
|
||||
|
||||
####################################
|
||||
with open(self.base_file_path + "time_taken.txt", "a") as file007:
|
||||
file007.write("BEFORE sa_output_to_docx\n")
|
||||
|
||||
df.to_csv(self.base_file_path + "df_before_sa_output85.csv", index = False)
|
||||
df = pd.read_csv(self.base_file_path + "df_before_sa_output85.csv")
|
||||
|
||||
sf.sa_output_to_docx(df, output_linewise_docx, output_template)
|
||||
with open(self.base_file_path + "time_taken.txt", "a") as file007:
|
||||
|
|
|
@ -11301,6 +11301,10 @@ def sa_output_to_docx(df,output_docx,output_template):
|
|||
|
||||
pos = df['Identification_Status'][index]
|
||||
data = df['data'][index]
|
||||
|
||||
if not isinstance(data, str):
|
||||
data = ''
|
||||
|
||||
try:
|
||||
print(index,data)
|
||||
except:
|
||||
|
@ -11364,7 +11368,8 @@ def sa_output_to_docx(df,output_docx,output_template):
|
|||
paragraph_format.space_after = Pt(0)
|
||||
|
||||
paragraph_format.line_spacing = Pt(12)
|
||||
if data.strip():
|
||||
# if data.strip():
|
||||
if isinstance(data, str) and data.strip():
|
||||
para.text = data[15:]
|
||||
else:
|
||||
para.text = ''
|
||||
|
|
Loading…
Reference in New Issue