Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edd 1897 store last month speeds #4

Merged
merged 4 commits into from
Jun 17, 2024
Merged

Conversation

Mrtn-fa
Copy link
Collaborator

@Mrtn-fa Mrtn-fa commented Jun 15, 2024

📚 Contexto

Es necesario guardar en la base de datos el promedio de velocidades de un mes para cada segmento, según tipo de día.

📝 Cambios

  • Se agregó el modelo HistoricSpeed para almacenar el promedio mensual de velocidades para un segmento, según el tipo de día (Laboral, Sábado, Domingo)
  • Se agregó el comando get_avg_speed_by_month, para el cálculo del promedio de velocidad
  • Se agregó el comando save_historic_avg_speed, para crear instancias del modelo.

🔍 Tests

  • Se agregaron tests

Mrtn-fa added 4 commits June 11, 2024 13:10
Added HistoricSpeed model
Added tests
Added get_avg_speed_by_month command
Added save_historic_avg_speed
Fixed tests
@Mrtn-fa Mrtn-fa merged commit b8b0185 into dev Jun 17, 2024
1 check passed
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