Explorar el Código

add field timestamp

tangs hace 6 años
padre
commit
206c71f0b3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      upload.py

+ 2 - 0
upload.py

@@ -54,6 +54,8 @@ class Handle:
             content['type'] = ''
         if not content.__contains__('schema'):
             content['schema'] = ''
+        if not content.__contains__('timestamp'):
+            content['timestamp'] = int(datetime.datetime.now().timestamp() * 1000)
         if not content.__contains__('login_name'):
             content['login_name'] = ''
         # if not content.__contains__('pwd'):