zhangyong před 1 rokem
rodič
revize
6daaee679e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)