mirror of https://gitlab.com/bashrc2/epicyon
Reverse logic
parent
5a178a28d6
commit
7c58e89f0b
|
@ -583,7 +583,7 @@ def _getImageDescription(postJsonObject: {}) -> str:
|
|||
def _showLikesOnPost(postJsonObject: {}, maxLikes: int) -> None:
|
||||
"""Shows the likes on a post
|
||||
"""
|
||||
if postJsonObject.get('object'):
|
||||
if not postJsonObject.get('object'):
|
||||
return
|
||||
if not isinstance(postJsonObject['object'], dict):
|
||||
return
|
||||
|
@ -593,6 +593,8 @@ def _showLikesOnPost(postJsonObject: {}, maxLikes: int) -> None:
|
|||
return
|
||||
if not postJsonObject['object']['likes'].get('items'):
|
||||
return
|
||||
if not isinstance(postJsonObject['object']['likes']['items'], list):
|
||||
return
|
||||
print('')
|
||||
ctr = 0
|
||||
for item in postJsonObject['object']['likes']['items']:
|
||||
|
|
Loading…
Reference in New Issue