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

Brightcells 9 anni fa
parent
commit
a80a911457
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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