Mise à jour de la distance théorique
This commit is contained in:
parent
c7ea98c6da
commit
389b00796e
|
@ -354,6 +354,27 @@ WHERE phase_5_pk.pk_id = pk_recales.pk_id ;"""
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
|
print(" Mise à jour de la distance théorique")
|
||||||
|
|
||||||
|
sql_update_length_theorical = f"""
|
||||||
|
UPDATE phase_5_pk
|
||||||
|
SET
|
||||||
|
length_theorical = sub.length_theorical
|
||||||
|
FROM (
|
||||||
|
SELECT
|
||||||
|
pk.pk_id
|
||||||
|
,pk.secteur_id
|
||||||
|
,s.longueur_km_redadeg AS length_theorical
|
||||||
|
FROM phase_5_pk pk JOIN secteur s ON pk.secteur_id = s.id
|
||||||
|
ORDER BY pk_id
|
||||||
|
) sub
|
||||||
|
WHERE phase_5_pk.pk_id = sub.pk_id ;"""
|
||||||
|
|
||||||
|
db_redadeg_cursor.execute(sql_update_length_theorical)
|
||||||
|
print(" fait")
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
print(" Mise à jour des informations sur les voies")
|
print(" Mise à jour des informations sur les voies")
|
||||||
|
|
||||||
sql_update_infos_ways = f"""
|
sql_update_infos_ways = f"""
|
||||||
|
|
Loading…
Reference in a new issue