From 8fce419afdb880b2ea6451c9a130784b158b3800 Mon Sep 17 00:00:00 2001 From: "vladimir.buzalka" Date: Thu, 20 Nov 2025 10:07:30 +0100 Subject: [PATCH] Z230 --- 10ReadPozadavky/PRAVIDELNE_3_StahniKomunikacifull.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/10ReadPozadavky/PRAVIDELNE_3_StahniKomunikacifull.py b/10ReadPozadavky/PRAVIDELNE_3_StahniKomunikacifull.py index 293a554..675e4a9 100644 --- a/10ReadPozadavky/PRAVIDELNE_3_StahniKomunikacifull.py +++ b/10ReadPozadavky/PRAVIDELNE_3_StahniKomunikacifull.py @@ -237,6 +237,18 @@ def main(): """) requests_to_process = cur.fetchall() + # ================================= + # ⏩ SKIP FIRST 3100 AS YESTERDAY + # ================================= + + SKIP = 3100 + if len(requests_to_process) > SKIP: + print(f"⏩ Skipping first {SKIP} pozadavky (already processed yesterday).") + requests_to_process = requests_to_process[SKIP:] + else: + print("⚠️ Not enough pozadavky to skip!") + + print(f"📋 Requests to process: {len(requests_to_process)}\n") # ---- Process each request