From 9cb27536ab3be8958ea2038921627f9f44a12c77 Mon Sep 17 00:00:00 2001 From: "Pavel Turinsky (DebianVM @ Zr)" Date: Tue, 29 Jun 2021 17:18:22 +0000 Subject: [PATCH] Chceme vsechna tematka, ne jen zadana. --- db_compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_compare.py b/db_compare.py index 4037ae6d..968d4c30 100755 --- a/db_compare.py +++ b/db_compare.py @@ -387,7 +387,7 @@ def check_uloha(): def check_tema(): old_query = """SELECT text_zadani, text_reseni, typ, c.rocnik_id AS rocnik_id FROM seminar_problemy - INNER JOIN seminar_cisla AS c ON c.id = cislo_zadani_id + LEFT OUTER JOIN seminar_cisla AS c ON c.id = cislo_zadani_id WHERE typ IN ('tema', 'serial') ORDER BY seminar_problemy.id""" new_query = """SELECT tema_typ, zad_text.na_web AS text_zadani, res_text.na_web AS text_reseni, rn.rocnik_id AS rocnik_id