Rebase server

This commit is contained in:
tema 2023-09-05 00:18:35 +03:00
parent 62f528577a
commit 8c34492247
Signed by: tema
GPG Key ID: 21FDB6D162488F6F
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import os
import datetime
from datetime import datetime as dt
import base64
import requests
@ -198,7 +199,7 @@ class Helper():
['inlineObjects'][id_doc]['inlineObjectProperties']
['embeddedObject']['imageProperties']['contentUri'])
r = requests.get(link, stream=True)
return r.raw
return base64.b64encode(r.content).decode('utf-8')
@classmethod
def find_image(cls, document):

View File

@ -1,6 +1,7 @@
import os
import datetime
from datetime import datetime as dt
import base64
import requests