Przeglądaj źródła

add field timestamp

tangs 6 lat temu
rodzic
commit
206c71f0b3
1 zmienionych plików z 2 dodań i 0 usunięć
  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'):