zhangyong 1 year ago
parent
commit
6daaee679e
1 changed files with 1 additions and 1 deletions
  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)