zhangyong 1 年之前
父節點
當前提交
6daaee679e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      video_stitching/video_stitching.py

+ 1 - 1
video_stitching/video_stitching.py

@@ -62,7 +62,7 @@ class VideoStitching():
     # 随机生成id
     @classmethod
     def random_id(cls):
-        now = datetime.datetime.now()
+        now = datetime.now()
         rand_num = random.randint(10000, 99999)
 
         id = "{}{}".format(now.strftime("%Y%m%d%H%M%S"), rand_num)