mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Chat: Flush before sending attachment_created
This commit is contained in:
parent
5782b9ee6f
commit
f608f004d2
@ -114,6 +114,7 @@ class RHChatManageEventAttachLogs(RHChatManageEventRetrieveLogsBase):
|
||||
description="Chat logs for the chat room '{}'".format(self.chatroom.name))
|
||||
attachment.file = AttachmentFile(user=session.user, filename=filename, content_type='text/html')
|
||||
attachment.file.save(logs.encode('utf-8'))
|
||||
db.session.flush()
|
||||
signals.attachments.attachment_created.send(attachment, user=session.user)
|
||||
log_data = [
|
||||
('Range', 'Everything' if not self.date_filter else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user