質問編集履歴
1
ソースミス
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -10,5 +10,6 @@
|
|
|
10
10
|
def update_many(self, df, now):
|
|
11
11
|
d = df.to_dict(orient='index')
|
|
12
12
|
for id in df.index:
|
|
13
|
+
d[id]["updatedAt"] = now
|
|
13
14
|
db.collection.update_one(filter={"id": id}, update={"$set": d[id]})
|
|
14
15
|
```
|