zwxi 8 months ago
parent
commit
dd372bacef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -142,7 +142,7 @@ import asyncio
 from pyppeteer import launch
 
 @asyncio.coroutine
-def main():
+async def main():
     # 异步代码
     browser = await launch({
         'executablePath': '%s',