Skip to content

fixed bug with number of likes/dislikes#162

Merged
Zimovchik merged 3 commits intomainfrom
fix_like_count
Mar 15, 2026
Merged

fixed bug with number of likes/dislikes#162
Zimovchik merged 3 commits intomainfrom
fix_like_count

Conversation

@petrCher
Copy link
Member

@petrCher petrCher commented Mar 15, 2026

Изменения

Исправил баг в put like/dislike. Раньше выводилась инфа о количестве лайков/дизлайков до выставления реакции, что некорректно. Теперь поставил реакцию - увеличилось сразу количество реакций.
Также починил black isort

Детали реализации

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

@github-actions
Copy link

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link

github-actions bot commented Mar 15, 2026

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
rating_api
   __main__.py440%1–7
   exceptions.py43784%35–37, 48–50, 58
rating_api/models
   base.py64494%24–27
   db.py1641889%115, 117, 119, 121, 132, 171, 189, 199, 213, 222–224, 257, 271–283
rating_api/routes
   base.py16194%41
   comment.py1513577%64, 82, 131–132, 153–162, 172, 236–237, 239–240, 248–253, 262, 269–271, 295, 308, 338–349, 380
   exc_handlers.py32391%36, 43, 50
   lecturer.py109992%70–71, 81, 87–88, 218, 226, 244, 250
rating_api/schemas
   base.py12467%6–9
   models.py155398%189, 191, 201
rating_api/utils
   mark.py880%1–20
TOTAL7929688% 

Summary

Tests Skipped Failures Errors Time
88 0 💤 0 ❌ 0 🔥 23.985s ⏱️

@github-actions
Copy link

💩 Code linting failed, use black and isort to fix it.

@petrCher petrCher linked an issue Mar 15, 2026 that may be closed by this pull request
@petrCher petrCher requested a review from Zimovchik March 15, 2026 17:51
@Zimovchik Zimovchik merged commit 5b0282c into main Mar 15, 2026
2 checks 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.

Исправить black isort

2 participants