Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 0f3af523

Přidáno uživatelem Stanislav Král před asi 4 roky(ů)

Re #8472 - Changed CertificateRepository.read_all method in such way that empty list is now returned instead of None when no certificates are found

Zobrazit rozdíly:

src/dao/certificate_repository.py
159 159
            print(e)
160 160
            return None
161 161

  
162
        if len(certificates) > 0:
163
            return certificates
164
        else:
165
            return None
162
        return certificates
166 163

  
167 164
    def update(self, certificate_id: int, certificate: Certificate) -> bool:
168 165
        """

Také k dispozici: Unified diff