zhangyong há 1 ano atrás
pai
commit
6daaee679e
1 ficheiros alterados com 1 adições e 1 exclusões
  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)