Redmind commited on
Commit
b084e14
·
verified ·
1 Parent(s): de470db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1231,7 +1231,7 @@ def handle_large_dataset(df, create_document,isDataFrame):
1231
  #Logic to generate pdfs with employee name and account number
1232
  for index, row in df.iterrows():
1233
  # Create a PDF for each row
1234
- create_pdf(row['COMPANY'], row['EMPLOYEE NAME'])
1235
  create_document = False
1236
  docstatus += f" {total_rows} documents are created successfully."
1237
  print(sample_table)
@@ -1247,10 +1247,12 @@ def handle_large_dataset(df, create_document,isDataFrame):
1247
  def create_pdf(cname,ename):
1248
 
1249
 
1250
- filled = FormWrapper("LOA_Sample.pdf").fill(
1251
  {
1252
- "company name": cname,
1253
- "employee name": ename,
 
 
1254
 
1255
  },
1256
  )
 
1231
  #Logic to generate pdfs with employee name and account number
1232
  for index, row in df.iterrows():
1233
  # Create a PDF for each row
1234
+ create_pdf(row['COMPANY'], row['EMPLOYEE NAME'], row['ACCOUNT NUMBER'])
1235
  create_document = False
1236
  docstatus += f" {total_rows} documents are created successfully."
1237
  print(sample_table)
 
1247
  def create_pdf(cname,ename):
1248
 
1249
 
1250
+ filled = FormWrapper("LOA_Sample_new.pdf").fill(
1251
  {
1252
+ 'company name': cname,
1253
+ 'employee name': ename,
1254
+ 'account number': account_number,
1255
+ 'employee name1': ename
1256
 
1257
  },
1258
  )