Nechba commited on
Commit
a9f77d9
·
verified ·
1 Parent(s): e489dc3

Update utlis/helper.py

Browse files
Files changed (1) hide show
  1. utlis/helper.py +2 -1
utlis/helper.py CHANGED
@@ -162,7 +162,8 @@ def add_document(token,servicename):
162
  document_name = document_name.replace(")","_")
163
  document_name = document_name.replace("-","_")
164
  document_name = document_name.replace(".","_")
165
- encoded_file = base64.b64encode(file.read()).decode('utf-8')
 
166
  data = {
167
  "token": token,
168
  "service_name": servicename,
 
162
  document_name = document_name.replace(")","_")
163
  document_name = document_name.replace("-","_")
164
  document_name = document_name.replace(".","_")
165
+ encoded_file = base64.b64encode(file.read()).decode('utf-8')
166
+ print(encoded_file)
167
  data = {
168
  "token": token,
169
  "service_name": servicename,