Browse Source

update:添加eval依赖

dongzhaorui 2 years ago
parent
commit
22a989addb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      A数据处理/sync_data/send_data.py

+ 1 - 0
A数据处理/sync_data/send_data.py

@@ -100,6 +100,7 @@ def literal_eval(node_or_string):
     except ValueError as e:
         if "malformed node or string" in e.args[0]:
             from bson import Code, ObjectId  # eval变量作用域,ObjectId参数
+            import datetime
             return eval(node_or_string)
         else:
             raise e