Omkar008 commited on
Commit
3c001d4
1 Parent(s): 142156e

Update services/utils.py

Browse files
Files changed (1) hide show
  1. services/utils.py +1 -1
services/utils.py CHANGED
@@ -107,7 +107,7 @@ def strcuture_document_data(raw_text:str)->dict:
107
 
108
  # print("printing structured json")
109
  # print(dict_object)
110
- if dict_object:
111
  dict_object['total_cost'] = dict_object['total_cost'].split('.')[0].replace(',','')
112
  return dict_object
113
  except Exception as e:
 
107
 
108
  # print("printing structured json")
109
  # print(dict_object)
110
+ if dict_object['total_cost'] is not None:
111
  dict_object['total_cost'] = dict_object['total_cost'].split('.')[0].replace(',','')
112
  return dict_object
113
  except Exception as e: