summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-09-18 17:24:26 -0400
committerWill Woods <wwoods@redhat.com>2009-09-18 17:24:26 -0400
commitf656bcc7f46ffcbaa5e5b565c062a899e7dc12d4 (patch)
treed6ba4dc49bc39a0ed6758c93d0f95c197f62c7c8
parent2ff450618b3363c400ff1d64c9639a005f227f4b (diff)
downloadisrawhidebroken-f656bcc7f46ffcbaa5e5b565c062a899e7dc12d4.tar.gz
israwhidebroken-f656bcc7f46ffcbaa5e5b565c062a899e7dc12d4.tar.xz
israwhidebroken-f656bcc7f46ffcbaa5e5b565c062a899e7dc12d4.zip
Fix user_id in TestResult (should be user.id)
-rw-r--r--israwhidebroken/controllers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/israwhidebroken/controllers.py b/israwhidebroken/controllers.py
index 8e666ca..6c2797b 100644
--- a/israwhidebroken/controllers.py
+++ b/israwhidebroken/controllers.py
@@ -74,7 +74,7 @@ class Root(controllers.RootController):
tr = TestResult(tree=to_int(treeid),
test=to_int(testid),
result=to_int(result),
- userid=identity.current.user_id,
+ userid=identity.current.user.id,
bug_id=None)
hub.commit() # XXX necessary?
return dict(id=tr.id)