Skip to content

Hotfix/2013 12 12 - #1937

Merged
jarv merged 2 commits into
releasefrom
hotfix/2013-12-12
Dec 16, 2013
Merged

Hotfix/2013 12 12#1937
jarv merged 2 commits into
releasefrom
hotfix/2013-12-12

Conversation

@adampalay

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

4 participants