diff --git a/apply_events.cfm b/apply_events.cfm index 5c3f181..23e4051 100644 --- a/apply_events.cfm +++ b/apply_events.cfm @@ -16,13 +16,13 @@ - + SELECT COUNT(*) as cnt FROM spec_events WHERE supplement_id = - + diff --git a/deploy/convert_server.py b/deploy/convert_server.py index 003aad7..e3fe182 100755 --- a/deploy/convert_server.py +++ b/deploy/convert_server.py @@ -107,6 +107,9 @@ class Handler(BaseHTTPRequestHandler): t0 = time.time() try: + # 0. Сброс предыдущих результатов сравнения + httpx.get(f"{LUCEE_URL}/reset_contract.cfm?contract_id={cid}", timeout=10) + # 1. Список supplements supps = self._lucee_query( f"SELECT s.id, s.type, d.filename FROM supplements s " diff --git a/reset_contract.cfm b/reset_contract.cfm new file mode 100644 index 0000000..cd09040 --- /dev/null +++ b/reset_contract.cfm @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + DELETE FROM spec_current + WHERE contract_id = + + + DELETE FROM spec_events + WHERE contract_id = + + + + + + + + + +#serializeJSON(result)#