Show More
@@ -144,13 +144,7 b' class ScmModel(BaseModel):' | |||
|
144 | 144 | tmp_d['tip'] = tip.raw_id |
|
145 | 145 | tmp_d['tip_sort'] = tip.revision |
|
146 | 146 | tmp_d['rev'] = tip.revision |
|
147 | ||
|
148 | #dirty hack for some problems | |
|
149 | usr = repo.dbrepo.user | |
|
150 | if isinstance(usr, basestring): | |
|
151 | usr = UserModel(self.sa).get_by_username(repo.dbrepo.user) | |
|
152 | ||
|
153 | tmp_d['contact'] = usr.full_contact | |
|
147 | tmp_d['contact'] = repo.dbrepo.user.full_contact | |
|
154 | 148 | tmp_d['contact_sort'] = tmp_d['contact'] |
|
155 | 149 | tmp_d['repo_archives'] = list(repo._get_archives()) |
|
156 | 150 | tmp_d['last_msg'] = tip.message |
General Comments 0
You need to be logged in to leave comments.
Login now