Skip to content

[ADD] Occupancy percentage widget#210

Open
aledeleonez wants to merge 1 commit intooscarchapp:mainfrom
aledeleonez:dashboard-porcentaje-ocupacion
Open

[ADD] Occupancy percentage widget#210
aledeleonez wants to merge 1 commit intooscarchapp:mainfrom
aledeleonez:dashboard-porcentaje-ocupacion

Conversation

@aledeleonez
Copy link
Copy Markdown

Second task of the technical assessment.

Changes made:

  • Backend(DashboardView): Implemented logic to calculate the occupancy percentage (Active Bookings / Total Rooms) * 100.
  • Frontend(dashboard.html): Added a new widget similar to the ones that existed. Used 'floatformat' to display the percentage (50.00%).
  • Tests (tests.py): Implemented new tests using TestCase to prove the new functionality.

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.

1 participant