change time.time() to int(time.time()) in upload_path

Brightcells 9 年之前
父節點
當前提交
a80a911457
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      operation/models.py

+ 1 - 1
operation/models.py

@@ -17,7 +17,7 @@ def upload_path(instance, old_filename):
17 17
     return 'file/{year}{month}/{timestamp}{extension}'.format(
18 18
         year=today.year,
19 19
         month=today.month,
20
-        timestamp=time.time(),
20
+        timestamp=int(time.time()),
21 21
         extension=extension
22 22
     )
23 23