Skip to content

Conversation

@ThiefMaster
Copy link
Member

No description provided.

@ThiefMaster ThiefMaster added this to the v3.3 milestone Sep 23, 2024
@ThiefMaster ThiefMaster enabled auto-merge (squash) September 23, 2024 10:05
@ThiefMaster ThiefMaster merged commit 99f7cd3 into indico:master Sep 23, 2024
@ThiefMaster ThiefMaster deleted the abstract-json-files branch September 23, 2024 10:08

class AbstractFileSchema(mm.SQLAlchemyAutoSchema):
icon = mm.Function(lambda af: icon_from_mimetype(af.content_type))
download_url = mm.Function(lambda af: url_for('abstracts.download_attachment', af))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to use an external URL here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, we don't do so either for paper files... but yeah, might be nice to change it for all places where it's an export that's meant to be downloaded and not used in indico itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants