Skip to content

Dave branch#1

Open
kessa99 wants to merge 8 commits into
python-togo:mainfrom
kessa99:daveBranch
Open

Dave branch#1
kessa99 wants to merge 8 commits into
python-togo:mainfrom
kessa99:daveBranch

Conversation

@kessa99
Copy link
Copy Markdown
Collaborator

@kessa99 kessa99 commented Apr 26, 2026

add new endpoint

@WassCodeur
Copy link
Copy Markdown
Member

Hello @kessa99 , Great work.

La branch a un conflit stp est ce que tu peut voir ca ?

@WassCodeur WassCodeur self-requested a review May 15, 2026 23:37
Copy link
Copy Markdown
Member

@WassCodeur WassCodeur left a comment

Choose a reason for hiding this comment

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

Il y'a un conflit

@kessa99
Copy link
Copy Markdown
Collaborator Author

kessa99 commented May 19, 2026

Ok je vais revoir cela

@kessa99
Copy link
Copy Markdown
Collaborator Author

kessa99 commented May 19, 2026

c'est bon

@WassCodeur
Copy link
Copy Markdown
Member

Hi @kessa99 , je vu le gros boulot qui est fait vraiment merci beaucoup.

en faisant le review j'ai remarquer qu'il sera tres cool de faire de petit modifier et ouvrir un pr pour chaque modif. parce que avec tout en un vraiment c'est tres dificile de review ca proprepement sans faire d'erreur (:

Comment thread app/utils/speaker.py
raise HTTPException(status_code=409, detail="A speaker with this email already exists for this event")

data = {k: str(v) if v is not None and not isinstance(v, (bool, int, dict)) else v
for k, v in payload.items()}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hello @kessa99 , merci beaucoup pour ta contribution.

Ici je trouve ce check n'ai plus necessaire puisse qu'on utilise deja Pydantic. la boucle va ajouter une charge de plus. au niveau du mini il aussi deja ces checker encore.

Comment thread app/utils/speaker.py
async def update_speaker(db, speaker_id: str, payload: dict) -> dict:
await _get_or_404(db, speaker_id)
payload["updated_at"] = datetime.now(timezone.utc)
data = {k: str(v) if v is not None and not isinstance(v, (bool, int, dict)) else v
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pareil ici

Comment thread app/utils/speaker.py
return str(rows[0]["id"])


async def _get_or_404(db, speaker_id: str) -> dict:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

j'aime cette approche. je trouvre que ca sera cool de le rendre module generale pour l'utiliser dans autre module

Comment thread app/utils/speaker.py
@@ -0,0 +1,72 @@
from datetime import datetime, timezone
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ce fichier a toujours un conflit

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.

2 participants