Marthee commited on
Commit
e66ae0b
·
verified ·
1 Parent(s): edd4bfe

Update pdftotext.py

Browse files
Files changed (1) hide show
  1. pdftotext.py +7 -1
pdftotext.py CHANGED
@@ -130,7 +130,13 @@ def apiFiltering(apitext):
130
  for item in apitext:
131
  project_template_details = item.get('projecttemplatedetails', [])
132
  for detail in project_template_details:
133
- print('apitext',detail)
 
 
 
 
 
 
134
 
135
  # import fitz
136
 
 
130
  for item in apitext:
131
  project_template_details = item.get('projecttemplatedetails', [])
132
  for detail in project_template_details:
133
+ detail_id = detail.get('id') # Get the `id` field from the detail
134
+ projecttemplateid = detail.get('projecttemplateid') # Get the `projecttemplateid` field
135
+ bqcode = detail.get('bqcodelibrary', {}).get('bqcode') # Get the `bqcode` field from the third {}
136
+
137
+ # Print or store the values as needed
138
+ print(f"ID: {detail_id}, Project Template ID: {projecttemplateid}, BQCode: {bqcode}")
139
+
140
 
141
  # import fitz
142