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:
|
def _showLikesOnPost(postJsonObject: {}, maxLikes: int) -> None:
|
||||||
"""Shows the likes on a post
|
"""Shows the likes on a post
|
||||||
"""
|
"""
|
||||||
if postJsonObject.get('object'):
|
if not postJsonObject.get('object'):
|
||||||
return
|
return
|
||||||
if not isinstance(postJsonObject['object'], dict):
|
if not isinstance(postJsonObject['object'], dict):
|
||||||
return
|
return
|
||||||
|
@ -593,6 +593,8 @@ def _showLikesOnPost(postJsonObject: {}, maxLikes: int) -> None:
|
||||||
return
|
return
|
||||||
if not postJsonObject['object']['likes'].get('items'):
|
if not postJsonObject['object']['likes'].get('items'):
|
||||||
return
|
return
|
||||||
|
if not isinstance(postJsonObject['object']['likes']['items'], list):
|
||||||
|
return
|
||||||
print('')
|
print('')
|
||||||
ctr = 0
|
ctr = 0
|
||||||
for item in postJsonObject['object']['likes']['items']:
|
for item in postJsonObject['object']['likes']['items']:
|
||||||
|
|
Loading…
Reference in New Issue