Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8b049f43

Přidáno uživatelem David Friesecký před asi 4 roky(ů)

Re #8578 - Updated certificate and certificate_repository
- certificate initialize revocation_date and revocation_reason on "" if input is None
- certificate_repository
- repaired error after tests
- edited comments (return)
- stylistics

Zobrazit rozdíly:

src/model/certificate.py
27 27
        self.parent_id: int = parent_id
28 28
        self.usages: Dict[int, bool] = DICT_USAGES.copy()
29 29

  
30
        if revocation_date is None:
31
            self.revocation_date = ""
32

  
33
        if revocation_reason is None:
34
            self.revocation_reason = ""
35

  
30 36
        for usage_id, usage_value in usages.items():
31 37
            self.usages[usage_id] = usage_value

Také k dispozici: Unified diff