Skip to content

Commit 00168a0

Browse files
committed
Merge pull request #49 from annerajb/master
Fixed issue with getProject returning wrong project
2 parents 845ad73 + ef88382 commit 00168a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyral/restapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def getProject(self, name=None):
433433
hits = [(proj,ref) for proj,ref in projs if str(proj) == str(name)]
434434
if not hits:
435435
return None
436-
tp = projs[0]
436+
tp = hits[0]
437437
tp_ref = tp[1]
438438
return _createShellInstance(context, 'Project', name, tp_ref)
439439

0 commit comments

Comments
 (0)