Skip to content

Conversation

@parfenovma
Copy link
Contributor

добавляю ручку на patch события по имени
нужно для хотфиксов рааписания без перезаливки

@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented Mar 15, 2025

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
calendar_backend
   __main__.py660%1–16
   exceptions.py13285%8, 14
calendar_backend/methods
   list_calendar.py704930%28–51, 58–64, 71–76, 85–98, 102–113
   utils.py352626%14–19, 23–28, 34–38, 42–46, 52–56
calendar_backend/models
   base.py64198%87
calendar_backend/routes
   base.py72790%74, 79–80, 85–86, 97, 100
calendar_backend/routes/event
   comment.py47687%30, 41–43, 52, 64
   comment_review.py27485%23–29, 41
   event.py112893%38, 45–48, 53, 113, 117
calendar_backend/routes/group
   group.py38392%26, 42, 58
calendar_backend/routes/lecturer
   comment.py48883%35, 49, 57–61, 70
   comment_review.py25484%21–29, 41
   lecturer.py60887%27, 41, 44, 54, 78–81
   photo.py43588%43, 48, 65, 76, 79
   photo_review.py512061%39–58, 75–77
calendar_backend/routes/models
   base.py60985%36–40, 43, 56, 67, 80
   event.py62395%15, 42, 60
   group.py391659%13–19, 22, 32–38, 41
   lecturer.py46296%21, 31
   room.py21195%13
calendar_backend/routes/room
   room.py39392%26, 44, 58
TOTAL115919184% 

Summary

Tests Skipped Failures Errors Time
34 0 💤 0 ❌ 0 🔥 4.071s ⏱️

@github-actions
Copy link

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

@parfenovma parfenovma merged commit ec6e1ab into main Mar 15, 2025
2 checks passed
@parfenovma parfenovma deleted the patch_event_by_name branch March 15, 2025 12:38
)
events = []
event_dict = event.model_dump()
rooms = [Room.get(room_id, session=db.session) for room_id in event_dict.pop("room_id", [])]
Copy link
Member

Choose a reason for hiding this comment

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

можно просто поидее .filter(Room.id in list

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.

3 participants