Revize 8b810b1c
Přidáno uživatelem David Friesecký před asi 4 roky(ů)
src/dao/certificate_repository.py | ||
---|---|---|
30 | 30 |
""" |
31 | 31 |
|
32 | 32 |
try: |
33 |
if certificate.revocation_date != "" and certificate.revocation_reason == "": |
|
34 |
certificate.revocation_reason = REV_REASON_UNSPECIFIED |
|
35 |
elif certificate.revocation_date == "": |
|
36 |
certificate.revocation_reason = "" |
|
37 |
|
|
38 | 33 |
sql = (f"INSERT INTO {TAB_CERTIFICATES} " |
39 | 34 |
f"({COL_COMMON_NAME}," |
40 | 35 |
f"{COL_VALID_FROM}," |
... | ... | |
181 | 176 |
""" |
182 | 177 |
|
183 | 178 |
try: |
184 |
if certificate.revocation_date != "" and certificate.revocation_reason == "": |
|
185 |
certificate.revocation_reason = REV_REASON_UNSPECIFIED |
|
186 |
elif certificate.revocation_date == "": |
|
187 |
certificate.revocation_reason = "" |
|
188 |
|
|
189 | 179 |
sql = (f"UPDATE {TAB_CERTIFICATES} " |
190 | 180 |
f"SET {COL_COMMON_NAME} = ?, " |
191 | 181 |
f"{COL_VALID_FROM} = ?, " |
Také k dispozici: Unified diff
Re #8578 - Delete old rows of test validity revocation data