Coding-with-Adam / response-reporting-dashboard

4 stars 2 forks source link

internal.py Ag Grid Image Image Column #4

Closed ElangoSubramani closed 7 months ago

ElangoSubramani commented 7 months ago
Coding-with-Adam commented 7 months ago

The problem is while adding a new row the uploaded image paths vanishes but the images are stored in the server but the images are in the server.

Hi @ElangoSubramani It's not exactly clear to me what the problem is. Can you please rephrase.

I tried running the code in your branch. First we have to fix the issue of misalignment between column fields in your internal.py file. The field name in the cols list on line 15 are different then the field names when one clicks the add-row button on line 165.

    elif ctx.triggered_id == "add-row-btn" and data:
        new_row = [{
            "Timestamp": "",
            "Reporting User": "",
            "Platform": "",
            "URL link": "",
            "Report Type": "",
            "Answer Date": "",
            "Platform Decision": "",
            "Policy": "",
            "Appeal": ""
        }]

Whenever one uploads a new image, the script creates a new pages folder inside the original pages folder. Can you please change that so we don't have a duplicate of the pages folder.

p.s. I also updated line 10-11 of your script so it goes to the new data set.

Coding-with-Adam commented 7 months ago

Closing this commit for now because we made some progress with image upload on another branch. Feel free to reopen this issue, @ElangoSubramani if you'd like to continue working on it.