Conditions | 1 |
Total Lines | 17 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | """ |
||
22 | 1 | @classmethod |
|
23 | def from_category_with_last_update( |
||
24 | cls, category: CategoryWithLastUpdate, contains_unseen_postings: bool |
||
25 | ) -> CategoryWithLastUpdateAndUnseenFlag: |
||
26 | 1 | return cls( |
|
27 | category.id, |
||
28 | category.board_id, |
||
29 | category.position, |
||
30 | category.slug, |
||
31 | category.title, |
||
32 | category.description, |
||
33 | category.topic_count, |
||
34 | category.posting_count, |
||
35 | category.hidden, |
||
36 | category.last_posting_updated_at, |
||
37 | category.last_posting_updated_by, |
||
38 | contains_unseen_postings, |
||
39 | ) |
||
67 |