Skip to content

Instantly share code, notes, and snippets.

@rbpasker
Last active December 17, 2015 09:59
Show Gist options
  • Save rbpasker/5591901 to your computer and use it in GitHub Desktop.
Save rbpasker/5591901 to your computer and use it in GitHub Desktop.
{ "_id" : ObjectId( "5191651568f1f6000282b81f" ),
"updated_at" : "2013-05-16T09:46:16.199660",
"activities" : [
{ "worker_name" : "image",
"worker_version" : 1,
"completed_at" : "2013-05-13T21:34:59.293711" },
{ "worker_name" : "image",
"worker_version" : 1,
"completed_at" : "2013-05-16T07:33:22.550405" },
{ "worker_name" : "image",
"worker_version" : 1,
"completed_at" : "2013-05-16T07:41:47.845966" }
]
}
@rbpasker
Copy link
Author

what I have so far

query2 = {
"activities.worker_name" : self.service_name,
"activities.completed_at" : {"$gte" : "updated_at"}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment