Refactor build_comment() so we don't waste time getting titles for videos that won't be listed due to the character limit
- Lingua principale
- Python
- Stelle
- 26
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Instead of getting all video titles then formatting the links and appending to the comment body, format links and append them immediately after getting the video title. This way we can cut out as soon as the comment hits the character limit. This should also eliminate the need for the trim_comment() function, since we'll stop building comments before they hit the limit.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia individuando build_comment() e trim_comment() nel repository e leggi come vengono attualmente assemblati i titoli e i link dei video. Modifica il flusso in modo che ogni titolo venga formattato e aggiunto immediatamente, interrompendosi al raggiungimento del limite di caratteri; il lavoro è completato quando i titoli non necessari non vengono recuperati e trim_comment() non è più necessario.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100