Pārlūkot izejas kodu

EM Model: use the appropriate dict

ArnAud 9 gadus atpakaļ
vecāks
revīzija
d8f8943ca8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      EditorialModel/model.py

+ 1
- 1
EditorialModel/model.py Parādīt failu

@@ -78,7 +78,7 @@ class Model(object):
78 78
     # @param uid int : An EmComponent uid
79 79
     # @return The corresponding instance or False if uid don't exists
80 80
     def component(self, uid):
81
-        return False if uid not in self._components else self._components['uids'][uid]
81
+        return False if uid not in self._components['uids'] else self._components['uids'][uid]
82 82
         
83 83
     ## Return a new uid
84 84
     # @return a new uid

Notiek ielāde…
Atcelt
Saglabāt