Compare commits
No commits in common. "ba265ca0fbf115e22e4ec82b932665b28f9877c4" and "4f8d2d1567f87ed11b27eb5043b16e25d01849b9" have entirely different histories.
ba265ca0fb
...
4f8d2d1567
|
@ -2074,11 +2074,6 @@ 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,10 +11301,6 @@ 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:
|
||||
|
@ -11368,8 +11364,7 @@ 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 isinstance(data, str) and data.strip():
|
||||
if data.strip():
|
||||
para.text = data[15:]
|
||||
else:
|
||||
para.text = ''
|
||||
|
|
Loading…
Reference in New Issue