Misc. Bug fixes
This commit is contained in:
parent
9981a2deb0
commit
bbcb3ceb05
@ -47,8 +47,8 @@ functions:
|
|||||||
vxTwitterApp:
|
vxTwitterApp:
|
||||||
handler: wsgi_handler.handler
|
handler: wsgi_handler.handler
|
||||||
url: true
|
url: true
|
||||||
timeout: 15
|
timeout: 5
|
||||||
MemorySize: 1024
|
memorySize: 300
|
||||||
layers:
|
layers:
|
||||||
- Ref: PythonRequirementsLambdaLayer
|
- Ref: PythonRequirementsLambdaLayer
|
||||||
|
|
||||||
|
@ -271,6 +271,7 @@ def link_to_vnf_from_tweet_data(tweet,video_link):
|
|||||||
elif tweetType(tweet) == "Text":
|
elif tweetType(tweet) == "Text":
|
||||||
url = ""
|
url = ""
|
||||||
thumb = ""
|
thumb = ""
|
||||||
|
size = {}
|
||||||
else:
|
else:
|
||||||
imgs = ["","","","", ""]
|
imgs = ["","","","", ""]
|
||||||
i = 0
|
i = 0
|
||||||
@ -283,6 +284,7 @@ def link_to_vnf_from_tweet_data(tweet,video_link):
|
|||||||
url = ""
|
url = ""
|
||||||
images= imgs
|
images= imgs
|
||||||
thumb = tweet['extended_entities']['media'][0]['media_url_https']
|
thumb = tweet['extended_entities']['media'][0]['media_url_https']
|
||||||
|
size = {}
|
||||||
|
|
||||||
qrt = {}
|
qrt = {}
|
||||||
|
|
||||||
@ -359,6 +361,9 @@ def message(text):
|
|||||||
url = config['config']['url'] )
|
url = config['config']['url'] )
|
||||||
|
|
||||||
def getTemplate(template,vnf,desc,image,video_link,color,urlDesc,urlUser,urlLink,appNameSuffix=""):
|
def getTemplate(template,vnf,desc,image,video_link,color,urlDesc,urlUser,urlLink,appNameSuffix=""):
|
||||||
|
if ('width' in vnf['size'] and 'height' in vnf['size']):
|
||||||
|
vnf['size']['width'] = min(vnf['size']['width'],2000)
|
||||||
|
vnf['size']['height'] = min(vnf['size']['height'],2000)
|
||||||
return render_template(
|
return render_template(
|
||||||
template,
|
template,
|
||||||
likes = vnf['likes'],
|
likes = vnf['likes'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user