OpenBCca / airbnb-regulation

Airbnb Regulation Project
MIT License
1 stars 0 forks source link

Create Report Generator for HTML Reports #15

Open alchuu00 opened 5 months ago

alchuu00 commented 5 months ago

Implement a report generation utility that creates HTML reports using the Jinja template engine.

Acceptance Criteria:

Additional Context: Example template structure:

    <table>
        <tr>
            <th>Listing ID</th>
            <th>Listing Address</th>
            <th>Policy X Violation</th>
            <th>Policy Y Violation</th>
            <th>Policy Z Violation</th>
        </tr>
        {% for listing in listings %}
        <tr>
            <td>{{ listing.listing_id }}</td>
            <td>{{ listing.listing_address }}</td>
            <td>{{ listing.policy_x_violation }}</td>
            <td>{{ listing.policy_y_violation }}</td>
            <td>{{ listing.policy_z_violation }}</td>
        </tr>
        {% endfor %}
    </table>
</body>
umsu2 commented 5 months ago

The generated report is saved locally <=== this shouldn't be saved, just generate the report as in memory data that's good enough. we have report repo which can used to be save the data, which could be in file or uploaded or w/e