ming 3 سال پیش
والد
کامیت
3be8bcc042
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      newbot.py

+ 1 - 1
newbot.py

@@ -183,7 +183,7 @@ async def get_trend_image(kw):
     #plt.figure()
     plt.plot(x_new, y_smooth)
     target_path = 'trend_image/'+kw+'.png'
-    plt.savefig(target_path))
+    plt.savefig(target_path)
     plt.savefig(target_path, bbox_inches='tight') #存檔,第二個參數表示把圖表外多餘的空間刪除
     
     return FileResponse(target_path)