LiveSync: Adapt to 3.2

This commit is contained in:
Adrian Moennich 2022-05-31 17:08:59 +02:00
parent ce13e27742
commit 187a8bd7f8
2 changed files with 4 additions and 4 deletions

View File

@ -230,7 +230,7 @@ def query_attachments(ids=None):
return (
Attachment.query
.join(Attachment.folder)
.options(folder_strategy, attachment_strategy, joinedload(Attachment.user).joinedload('_affiliation'))
.options(folder_strategy, attachment_strategy, joinedload(Attachment.user))
.outerjoin(AttachmentFolder.linked_event)
.outerjoin(AttachmentFolder.contribution)
.outerjoin(Contribution.event.of_type(contrib_event))
@ -328,7 +328,7 @@ def query_notes(ids=None):
.filter(export_filter)
.options(
note_strategy,
joinedload(EventNote.current_revision).joinedload(EventNoteRevision.user).joinedload('_affiliation'),
joinedload(EventNote.current_revision).joinedload(EventNoteRevision.user),
)
.order_by(EventNote.id)
)

View File

@ -1,6 +1,6 @@
[metadata]
name = indico-plugin-livesync
version = 3.1
version = 3.2-dev
description = Framework for pushing Indico event data to external services
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8; variant=GFM
@ -20,7 +20,7 @@ zip_safe = false
include_package_data = true
python_requires = ~=3.9.0
install_requires =
indico>=3.1
indico>=3.2.dev0
[options.entry_points]
indico.plugins =