Skip to content

fixed order_by - like_diff#169

Merged
petrCher merged 1 commit intomainfrom
fix-order_by--like_diff
Apr 28, 2026
Merged

fixed order_by - like_diff#169
petrCher merged 1 commit intomainfrom
fix-order_by--like_diff

Conversation

@seva265
Copy link
Copy Markdown
Contributor

@seva265 seva265 commented Apr 28, 2026

Изменения

Изменил запросы к базе данных. До этого когда лайков и дизлайков 0 это считалось как NULL а не '0', и поэтому запись с NULL like_diff улетала вверх выборки

@github-actions
Copy link
Copy Markdown

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
rating_api
   __main__.py440%1–7
   exceptions.py43979%35–37, 48–50, 58, 70, 78
rating_api/models
   base.py64198%91
   db.py1625069%86–98, 102–106, 112–126, 132, 167, 171, 175–177, 181–183, 187–189, 199, 213, 222–224, 229, 250, 258, 272–284
rating_api/routes
   base.py16194%41
   comment.py1516060%77, 95, 100, 103, 122, 144–145, 167–176, 192, 246–304, 330, 353, 393–404, 431
   exc_handlers.py32584%36, 43, 50, 64, 71
   lecturer.py1096342%61–93, 103–106, 124, 128–136, 180–212, 230, 238, 258–269
rating_api/schemas
   models.py1552485%161, 166–178, 181–185, 188–202
rating_api/utils
   mark.py880%1–20
TOTAL79022572% 

Summary

Tests Skipped Failures Errors Time
88 0 💤 1 ❌ 57 🔥 59.455s ⏱️

@petrCher petrCher linked an issue Apr 28, 2026 that may be closed by this pull request
@petrCher petrCher merged commit 52ed5c2 into main Apr 28, 2026
2 checks passed
@petrCher petrCher deleted the fix-order_by--like_diff branch April 28, 2026 16:30
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