Rebase server
This commit is contained in:
parent
62f528577a
commit
8c34492247
@ -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):
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user