tfrecord-viewer icon indicating copy to clipboard operation
tfrecord-viewer copied to clipboard

Error when used with Flask 2.2

Open AghastComet opened this issue 2 years ago • 1 comments

The flask function 'send_file', used on line 173 of tfviewer.py, doesn't use the 'attachment_filename' keyword as of Flask 2.2. It seems to have been replaced with the 'download_name' keyword.

AghastComet avatar Aug 04 '22 17:08 AghastComet

This could be fixed while maintaining backwards compatibility by checking flask.version first and deciding which keyword to send based on that.

AghastComet avatar Aug 04 '22 17:08 AghastComet