diff --git a/report.py b/report.py index d456176..ee5e175 100644 --- a/report.py +++ b/report.py @@ -9,7 +9,7 @@ d = DailymotionClient() while True: lis = db.get_report_video() - if lis.count() == 0: + if len(lis) == 0: time.sleep(20) for li in lis: try: