This commit is contained in:
2025-12-05 08:53:11 +01:00
parent 65c90750dc
commit bc44a65806
5 changed files with 463 additions and 55 deletions

View File

@@ -190,9 +190,10 @@ def main():
# Build query for pozadavky
sql = """
SELECT id, pacient_prijmeni, pacient_jmeno, createdAt
SELECT id, pacient_prijmeni, pacient_jmeno, createdAt, updatedAt, attachmentsProcessed
FROM pozadavky
WHERE attachmentsProcessed IS NULL
OR updatedAt > attachmentsProcessed
"""
params = []
if CREATED_AFTER: