Skip to content

Commit

Permalink
Merge remote-tracking branch 'newgene/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Sep 21, 2022
2 parents c4c6100 + 027b4ff commit 892caaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions biothings/hub/dataload/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ def register_status(self, status, subkey="upload", **extra):
upd["%s.data_folder" % job_key] = data_folder
# Update last success upload time only when the success
if status == "success":
upd["%s.last_success" % job_key] = src_doc["upload"]["jobs"][self.name][
"started_at"
]
upd["%s.last_success" % job_key] = (
src_doc["upload"]["jobs"].get(self.name) or {}
).get("started_at")
self.src_dump.update_one({"_id": self.main_source}, {"$set": upd})

async def load(
Expand Down

0 comments on commit 892caaf

Please sign in to comment.