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

View File

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