Do not use self._conf

This commit is contained in:
Adrian Moennich 2017-10-10 13:37:13 +02:00
parent 5e966645d6
commit c8fe6eebdc
2 changed files with 1 additions and 2 deletions

View File

@ -34,5 +34,5 @@ class RHChatEventPage(RHDisplayEventBase):
cols.add('description')
if any(c.chatroom.password for c in chatrooms):
cols.add('password')
return WPChatEventPage.render_template('event_page.html', self._conf, event_chatrooms=chatrooms, cols=cols,
return WPChatEventPage.render_template('event_page.html', self.event, event_chatrooms=chatrooms, cols=cols,
chat_links=current_plugin.settings.get('chat_links'))

View File

@ -34,7 +34,6 @@ class RHSearch(RH):
def _process_args(self):
if 'confId' in request.view_args:
self.obj = Event.get_one(request.view_args['confId'], is_deleted=False)
self._conf = self.obj.as_legacy
self.obj_type = 'event'
elif 'category_id' in request.view_args:
self.obj = Category.get_one(request.view_args['category_id'], is_deleted=False)