BuddhaNexus / buddhanexus-frontend-next

BuddhaNexus Frontend 2.0
buddhanexus-frontend-next.vercel.app
2 stars 1 forks source link

Download button in Table View downloads the Numbers View #145

Open ayya-vimala opened 1 month ago

ayya-vimala commented 1 month ago

When I select a file in Table View with certain parameters and then click in the Settings Menu on Download results as xmlx file I get the Numbers View instead of the Table View.

ayya-vimala commented 1 month ago

I also seem to get a GET request from the frontend for the download button. This is what I get:

fastapi       | file_name='dn7' score=0 par_length=0 limits=Limits(category_include=[], category_exclude=[], file_include=[], file_exclude=[]) page=0 sort_method='position' folio='' download_data=''
fastapi       | INFO:     172.18.0.1:45076 - "POST /table-view/download/ HTTP/1.1" 200 OK
fastapi       | INFO:     172.18.0.1:45076 - "GET /download/dn7_download.xlsx HTTP/1.1" 404 Not Found

The POST method returns the link to the spreadsheet in the form of download/dn7_download.xlsx. Then the link to where it is to be found is something like https://buddhanexus.net/download/dn7_download.xlsx or wherever the backend is hosted.

The GET request shouldn't be there I think.