Skip to content

fix: Añadir información sobre las citas en la API#402

Merged
sdelquin merged 4 commits intopythoncanarias:mainfrom
navascogt:issue#400
Oct 18, 2021
Merged

fix: Añadir información sobre las citas en la API#402
sdelquin merged 4 commits intopythoncanarias:mainfrom
navascogt:issue#400

Conversation

@navascogt
Copy link
Copy Markdown
Contributor

No description provided.

@sdelquin sdelquin requested a review from euribates October 11, 2021 08:55
@navascogt
Copy link
Copy Markdown
Contributor Author

Hola @sdelquin and @euribates, como vieron el draft ? Hay que hacer algún ajuste en los nombres? De esta forma puedo enviarles el PR y seguir con el otro issue, mil gracias!

Comment thread apps/api/urls.py Outdated
path('v1/events/all/', views.all_events, name='all_events'),
path('v1/events/', views.active_events, name='active_events'),
# Quotes
path('v1/quotes/', views.quote, name='quote'),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preferiria llamar al método random_quote, asi creo que quedaría más claro

Comment thread apps/api/views.py Outdated
return [serializer_sponsor(sponsor) for sponsor in sponsors]

@api
def quote(request):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preferiria llamar al método random_quote, asi creo que quedaría más claro

El serializer no tiene que saber si la cita ha sido elegida al azar o no, le es indiferente
Copy link
Copy Markdown
Collaborator

@euribates euribates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@euribates euribates marked this pull request as ready for review October 17, 2021 18:50
@amosistech
Copy link
Copy Markdown

Señores disculpas por la confusión, regreso a mi usuario original @navascogt con los comentarios que han adicionado por acá.

@navascogt
Copy link
Copy Markdown
Contributor Author

@sdelquin @euribates gracias por aceptar los cambios y hacer los cambio sugeridos, entiendo que con este issue ya no tengo que hacer nada verdad? Y por otro lado ya puedo regresar al issue original #378 que fue el que me trajo a este issue, por allá les dejo mis comentarios.

@sdelquin sdelquin added hacktoberfest-accepted HacktoberFest Accepted hacktoberfest Aptas para Hacktoberfest api Relacionado con el uso de la API labels Oct 18, 2021
@sdelquin sdelquin merged commit 54b9a07 into pythoncanarias:main Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relacionado con el uso de la API hacktoberfest Aptas para Hacktoberfest hacktoberfest-accepted HacktoberFest Accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants