Skip to content

Conversation

@adampalay
Copy link
Contributor

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use find_one instead, so that if there are many, you don't actually ship them all back from the db.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find_one won't handle the else clause which looks for any without a run id.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else clause immediately throws away everything but the first entry of maps, so find_one should work fine, I would think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, my bad. I misread the code

jarv added a commit that referenced this pull request Dec 16, 2013
@jarv jarv merged commit 25958e8 into release Dec 16, 2013
@dmitchell dmitchell deleted the hotfix/2013-12-12 branch October 24, 2014 19:48
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants