mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
DenormalizedRelation: fix bug in fast_query single thing2 case.
This commit is contained in:
@@ -936,7 +936,7 @@ class DenormalizedRelation(object):
|
||||
else:
|
||||
if results:
|
||||
assert len(results) == 1
|
||||
return results[0]
|
||||
return results.values()[0]
|
||||
else:
|
||||
raise NotFound("<%s %r>" % (cls.__name__, (thing1._id36,
|
||||
thing2._id36)))
|
||||
|
||||
Reference in New Issue
Block a user