if recent_lst is empty

check if recently added is null or not. If null then exit, nothing to notify.
This commit is contained in:
blacktwin 2018-03-13 11:18:57 -04:00 committed by GitHub
parent 51801177c6
commit faa6b6ebae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,10 @@ def get_rating_keys(TODAY, LASTDATE):
break break
start += count start += count
return recent_lst if recent_lst:
return recent_lst
sys.stderr.write("Recently Added list: {0}.".format(recent_lst))
exit()
def build_html(rating_key, height, width, pic_type): def build_html(rating_key, height, width, pic_type):