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)