~mapperr/trl

ref: f0199cf618af7c4bcc3737e98948d2f7ceeb02e6 trl/trullo/trl_card.py -rw-r--r-- 383 bytes
f0199cf6 — mapperr Add labels to board view 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from typing import Dict

import attr

from trullo.shortcuttable import Shortcuttable
from trullo.shortener import Shortener


@attr.s(auto_attribs=True)
class TrlCard(Shortcuttable):
    id: str
    short_link: str
    raw_data: Dict

    def get_normalized_name(self):
        return Shortener.normalize(
            f"{self.raw_data['name']}{self.raw_data['shortLink']}"
        )