Skip to content

Commit

Permalink
fix: 修复tiktok接口过滤器处理None值的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Aug 4, 2024
1 parent 986eecf commit 4f3a0d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions f2/apps/tiktok/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,8 @@ def api_status_code(self):

@property
def has_live(self) -> bool:
if len(self._get_attr_value("$.data")) == 4:
return False
return True
data = self._get_attr_value("$.data")
return bool(data) and len(data) != 4

# user
@property
Expand Down

0 comments on commit 4f3a0d8

Please sign in to comment.