From 3ba5f3510d97da9de3a87b3b3ad9e2a83c5337d1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 9 Oct 2022 19:19:32 +0100 Subject: [PATCH] Misc. fixes --- msgs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/msgs.py b/msgs.py index 330a420..8866fe7 100644 --- a/msgs.py +++ b/msgs.py @@ -23,18 +23,18 @@ def formatEmbedDesc(type,body,qrt,pollDisplay,likesDisplay): if pollDisplay==None: pollDisplay="" - if qrt!={} and not (type=="" or type=="Video"): + if qrt!=None and not (type=="" or type=="Video"): qrtDisplay=genQrtDisplay(qrt) if 'id' in qrt and ('https://twitter.com/'+qrt['screen_name']+'/status/'+qrt['id']) in body: body = body.replace(('https://twitter.com/'+qrt['screen_name']+'/status/'+qrt['id']),"") body = body.strip() body+=qrtDisplay - qrt={} + qrt=None if type=="" or type=="Video": output = body+pollDisplay - elif qrt=={}: + elif qrt==None: output= body+pollDisplay+likesDisplay else: output= body + likesDisplay