correction diagramme mineurs + ajout condition VERBOSE pour cacher log et supprimer l'entrée input pour cron

This commit is contained in:
pb 2025-06-22 10:07:08 +02:00
parent 86b7f2437b
commit 6703b95df7
4 changed files with 260 additions and 240 deletions

View File

@ -6,7 +6,7 @@
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:date>2025-06-21T20:31:55.648539</dc:date>
<dc:date>2025-06-21T21:06:45.992348</dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
@ -35,7 +35,7 @@ L 307.150694 140.046626
L 307.150694 111.6
L 288.409091 111.6
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #1f77b4"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_3">
<path d="M 288.409091 187.756564
@ -43,7 +43,7 @@ L 307.150694 187.756564
L 307.150694 145.086626
L 288.409091 145.086626
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #ff7f0e"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_4">
<path d="M 288.409091 221.24319
@ -51,7 +51,7 @@ L 307.150694 221.24319
L 307.150694 192.796564
L 288.409091 192.796564
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #2ca02c"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_5">
<path d="M 288.409091 340.069693
@ -59,7 +59,7 @@ L 307.150694 340.069693
L 307.150694 226.28319
L 288.409091 226.28319
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #d62728"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_6">
<path d="M 288.409091 373.556319
@ -67,7 +67,7 @@ L 307.150694 373.556319
L 307.150694 345.109693
L 288.409091 345.109693
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #9467bd"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_7">
<path d="M 288.409091 387.130307
@ -75,7 +75,7 @@ L 307.150694 387.130307
L 307.150694 378.596319
L 288.409091 378.596319
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #8c564b"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_8">
<path d="M 288.409091 420.616933
@ -83,7 +83,7 @@ L 307.150694 420.616933
L 307.150694 392.170307
L 288.409091 392.170307
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #e377c2"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_9">
<path d="M 288.409091 468.326871
@ -91,7 +91,7 @@ L 307.150694 468.326871
L 307.150694 425.656933
L 288.409091 425.656933
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #7f7f7f"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_10">
<path d="M 288.409091 615.6
@ -99,7 +99,7 @@ L 307.150694 615.6
L 307.150694 473.366871
L 288.409091 473.366871
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #bcbd22"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_11">
<path d="M 913.129198 575.28
@ -107,7 +107,7 @@ L 931.870802 575.28
L 931.870802 111.6
L 913.129198 111.6
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_12">
<path d="M 1537.849306 147.158282
@ -115,7 +115,7 @@ L 1556.590909 147.158282
L 1556.590909 111.6
L 1537.849306 111.6
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #1f77b4"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_13">
<path d="M 1537.849306 196.548221
@ -123,7 +123,7 @@ L 1556.590909 196.548221
L 1556.590909 153.878282
L 1537.849306 153.878282
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #ff7f0e"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_14">
<path d="M 1537.849306 211.802209
@ -131,7 +131,7 @@ L 1556.590909 211.802209
L 1556.590909 203.268221
L 1537.849306 203.268221
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #2ca02c"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_15">
<path d="M 1537.849306 275.41546
@ -139,7 +139,7 @@ L 1556.590909 275.41546
L 1556.590909 218.522209
L 1537.849306 218.522209
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #d62728"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_16">
<path d="M 1537.849306 580.825031
@ -147,7 +147,7 @@ L 1556.590909 580.825031
L 1556.590909 282.13546
L 1537.849306 282.13546
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #9467bd"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_17">
<path d="M 1537.849306 594.656687
@ -155,7 +155,7 @@ L 1556.590909 594.656687
L 1556.590909 587.545031
L 1537.849306 587.545031
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #8c564b"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_18">
<path d="M 1537.849306 615.6
@ -163,7 +163,7 @@ L 1556.590909 615.6
L 1556.590909 601.376687
L 1537.849306 601.376687
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #e377c2"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97"/>
</g>
<g id="patch_19">
<path d="M 307.150694 111.6
@ -171,7 +171,7 @@ C 488.944245 111.6 731.335647 111.6 913.129198 111.6
L 913.129198 140.046626
C 731.335647 140.046626 488.944245 140.046626 307.150694 140.046626
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_20">
<path d="M 307.150694 145.086626
@ -179,7 +179,7 @@ C 488.944245 145.086626 731.335647 140.046626 913.129198 140.046626
L 913.129198 182.716564
C 731.335647 182.716564 488.944245 187.756564 307.150694 187.756564
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_21">
<path d="M 307.150694 192.796564
@ -187,7 +187,7 @@ C 488.944245 192.796564 731.335647 182.716564 913.129198 182.716564
L 913.129198 211.16319
C 731.335647 211.16319 488.944245 221.24319 307.150694 221.24319
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_22">
<path d="M 307.150694 226.28319
@ -195,7 +195,7 @@ C 488.944245 226.28319 731.335647 211.16319 913.129198 211.16319
L 913.129198 324.949693
C 731.335647 324.949693 488.944245 340.069693 307.150694 340.069693
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_23">
<path d="M 307.150694 345.109693
@ -203,7 +203,7 @@ C 488.944245 345.109693 731.335647 324.949693 913.129198 324.949693
L 913.129198 353.396319
C 731.335647 353.396319 488.944245 373.556319 307.150694 373.556319
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_24">
<path d="M 307.150694 378.596319
@ -211,7 +211,7 @@ C 488.944245 378.596319 731.335647 353.396319 913.129198 353.396319
L 913.129198 361.930307
C 731.335647 361.930307 488.944245 387.130307 307.150694 387.130307
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_25">
<path d="M 307.150694 392.170307
@ -219,7 +219,7 @@ C 488.944245 392.170307 731.335647 361.930307 913.129198 361.930307
L 913.129198 390.376933
C 731.335647 390.376933 488.944245 420.616933 307.150694 420.616933
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_26">
<path d="M 307.150694 425.656933
@ -227,7 +227,7 @@ C 488.944245 425.656933 731.335647 390.376933 913.129198 390.376933
L 913.129198 433.046871
C 731.335647 433.046871 488.944245 468.326871 307.150694 468.326871
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_27">
<path d="M 307.150694 473.366871
@ -235,7 +235,7 @@ C 488.944245 473.366871 731.335647 433.046871 913.129198 433.046871
L 913.129198 575.28
C 731.335647 575.28 488.944245 615.6 307.150694 615.6
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #17becf; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_28">
<path d="M 931.870802 111.6
@ -243,7 +243,7 @@ C 1113.664353 111.6 1356.055755 111.6 1537.849306 111.6
L 1537.849306 147.158282
C 1356.055755 147.158282 1113.664353 147.158282 931.870802 147.158282
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #1f77b4; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_29">
<path d="M 931.870802 147.158282
@ -251,7 +251,7 @@ C 1113.664353 147.158282 1356.055755 153.878282 1537.849306 153.878282
L 1537.849306 196.548221
C 1356.055755 196.548221 1113.664353 189.828221 931.870802 189.828221
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #ff7f0e; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_30">
<path d="M 931.870802 189.828221
@ -259,7 +259,7 @@ C 1113.664353 189.828221 1356.055755 203.268221 1537.849306 203.268221
L 1537.849306 211.802209
C 1356.055755 211.802209 1113.664353 198.362209 931.870802 198.362209
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #2ca02c; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_31">
<path d="M 931.870802 198.362209
@ -267,7 +267,7 @@ C 1113.664353 198.362209 1356.055755 218.522209 1537.849306 218.522209
L 1537.849306 275.41546
C 1356.055755 275.41546 1113.664353 255.25546 931.870802 255.25546
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #d62728; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_32">
<path d="M 931.870802 255.25546
@ -275,7 +275,7 @@ C 1113.664353 255.25546 1356.055755 282.13546 1537.849306 282.13546
L 1537.849306 580.825031
C 1356.055755 580.825031 1113.664353 553.945031 931.870802 553.945031
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #9467bd; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_33">
<path d="M 931.870802 553.945031
@ -283,7 +283,7 @@ C 1113.664353 553.945031 1356.055755 587.545031 1537.849306 587.545031
L 1537.849306 594.656687
C 1356.055755 594.656687 1113.664353 561.056687 931.870802 561.056687
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #8c564b; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_34">
<path d="M 931.870802 561.056687
@ -291,7 +291,7 @@ C 1113.664353 561.056687 1356.055755 601.376687 1537.849306 601.376687
L 1537.849306 615.6
C 1356.055755 615.6 1113.664353 575.28 931.870802 575.28
z
" clip-path="url(#p3a0fb5d9d6)" style="fill: #e377c2; fill-opacity: 0.6"/>
" clip-path="url(#pfb945f976e)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="text_1">
<!-- Etabli:1000 -->
@ -1036,7 +1036,7 @@ z
</g>
<g id="text_10">
<!-- Total:16300 -->
<g transform="translate(824.933872 347.303125) scale(0.14 -0.14)">
<g transform="translate(881.525937 108.688437) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-54" d="M -19 4666
L 3928 4666
@ -1404,7 +1404,7 @@ z
</g>
</g>
<defs>
<clipPath id="p3a0fb5d9d6">
<clipPath id="pfb945f976e">
<rect x="225" y="86.4" width="1395" height="554.4"/>
</clipPath>
</defs>

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="1800pt" height="720pt" viewBox="0 0 1800 720" xmlns="http://www.w3.org/2000/svg" version="1.1">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="2160pt" height="720pt" viewBox="0 0 2160 720" xmlns="http://www.w3.org/2000/svg" version="1.1">
<metadata>
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:date>2025-06-21T20:31:55.979272</dc:date>
<dc:date>2025-06-21T21:06:46.225677</dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
@ -22,280 +22,296 @@
<g id="figure_1">
<g id="patch_1">
<path d="M 0 720
L 1800 720
L 1800 0
L 2160 720
L 2160 0
L 0 0
z
" style="fill: #ffffff"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 288.409091 329.972824
L 307.150694 329.972824
L 307.150694 111.6
L 288.409091 111.6
<path d="M 346.090909 329.972824
L 368.580833 329.972824
L 368.580833 111.6
L 346.090909 111.6
z
" clip-path="url(#pce684b8798)" style="fill: #1f77b4"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_3">
<path d="M 288.409091 397.386353
L 307.150694 397.386353
L 307.150694 335.732824
L 288.409091 335.732824
<path d="M 346.090909 397.386353
L 368.580833 397.386353
L 368.580833 335.732824
L 346.090909 335.732824
z
" clip-path="url(#pce684b8798)" style="fill: #ff7f0e"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_4">
<path d="M 288.409091 451.446353
L 307.150694 451.446353
L 307.150694 403.146353
L 288.409091 403.146353
<path d="M 346.090909 451.446353
L 368.580833 451.446353
L 368.580833 403.146353
L 346.090909 403.146353
z
" clip-path="url(#pce684b8798)" style="fill: #2ca02c"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_5">
<path d="M 288.409091 470.275765
L 307.150694 470.275765
L 307.150694 457.206353
L 288.409091 457.206353
<path d="M 346.090909 470.275765
L 368.580833 470.275765
L 368.580833 457.206353
L 346.090909 457.206353
z
" clip-path="url(#pce684b8798)" style="fill: #d62728"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_6">
<path d="M 288.409091 567.408
L 307.150694 567.408
L 307.150694 476.035765
L 288.409091 476.035765
<path d="M 346.090909 567.408
L 368.580833 567.408
L 368.580833 476.035765
L 346.090909 476.035765
z
" clip-path="url(#pce684b8798)" style="fill: #9467bd"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_7">
<path d="M 288.409091 586.578353
L 307.150694 586.578353
L 307.150694 573.168
L 288.409091 573.168
<path d="M 346.090909 586.578353
L 368.580833 586.578353
L 368.580833 573.168
L 346.090909 573.168
z
" clip-path="url(#pce684b8798)" style="fill: #8c564b"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_8">
<path d="M 288.409091 596.941059
L 307.150694 596.941059
L 307.150694 592.338353
L 288.409091 592.338353
<path d="M 346.090909 596.941059
L 368.580833 596.941059
L 368.580833 592.338353
L 346.090909 592.338353
z
" clip-path="url(#pce684b8798)" style="fill: #e377c2"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_9">
<path d="M 288.409091 615.6
L 307.150694 615.6
L 307.150694 602.701059
L 288.409091 602.701059
<path d="M 346.090909 615.6
L 368.580833 615.6
L 368.580833 602.701059
L 346.090909 602.701059
z
" clip-path="url(#pce684b8798)" style="fill: #7f7f7f"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_10">
<path d="M 913.129198 575.28
L 931.870802 575.28
L 931.870802 111.6
L 913.129198 111.6
<path d="M 1095.755038 575.28
L 1118.244962 575.28
L 1118.244962 111.6
L 1095.755038 111.6
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_11">
<path d="M 1537.849306 350.429294
L 1556.590909 350.429294
L 1556.590909 111.6
L 1537.849306 111.6
<path d="M 1845.419167 350.429294
L 1867.909091 350.429294
L 1867.909091 111.6
L 1845.419167 111.6
z
" clip-path="url(#pce684b8798)" style="fill: #17becf"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_12">
<path d="M 1537.849306 363.879176
L 1556.590909 363.879176
L 1556.590909 355.469294
L 1537.849306 355.469294
<path d="M 1845.419167 363.879176
L 1867.909091 363.879176
L 1867.909091 355.469294
L 1845.419167 355.469294
z
" clip-path="url(#pce684b8798)" style="fill: #1f77b4"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_13">
<path d="M 1537.849306 408.752471
L 1556.590909 408.752471
L 1556.590909 368.919176
L 1537.849306 368.919176
<path d="M 1845.419167 408.752471
L 1867.909091 408.752471
L 1867.909091 368.919176
L 1845.419167 368.919176
z
" clip-path="url(#pce684b8798)" style="fill: #ff7f0e"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_14">
<path d="M 1537.849306 420.327176
L 1556.590909 420.327176
L 1556.590909 413.792471
L 1537.849306 413.792471
<path d="M 1845.419167 420.327176
L 1867.909091 420.327176
L 1867.909091 413.792471
L 1845.419167 413.792471
z
" clip-path="url(#pce684b8798)" style="fill: #2ca02c"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_15">
<path d="M 1537.849306 569.983059
L 1556.590909 569.983059
L 1556.590909 425.367176
L 1537.849306 425.367176
<path d="M 1845.419167 569.983059
L 1867.909091 569.983059
L 1867.909091 425.367176
L 1845.419167 425.367176
z
" clip-path="url(#pce684b8798)" style="fill: #d62728"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_16">
<path d="M 1537.849306 576.386824
L 1556.590909 576.386824
L 1556.590909 575.023059
L 1537.849306 575.023059
<path d="M 1845.419167 576.386824
L 1867.909091 576.386824
L 1867.909091 575.023059
L 1845.419167 575.023059
z
" clip-path="url(#pce684b8798)" style="fill: #9467bd"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_17">
<path d="M 1537.849306 588.302471
L 1556.590909 588.302471
L 1556.590909 581.426824
L 1537.849306 581.426824
<path d="M 1845.419167 588.302471
L 1867.909091 588.302471
L 1867.909091 581.426824
L 1845.419167 581.426824
z
" clip-path="url(#pce684b8798)" style="fill: #8c564b"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_18">
<path d="M 1537.849306 608.400706
L 1556.590909 608.400706
L 1556.590909 593.342471
L 1537.849306 593.342471
<path d="M 1845.419167 608.400706
L 1867.909091 608.400706
L 1867.909091 593.342471
L 1845.419167 593.342471
z
" clip-path="url(#pce684b8798)" style="fill: #e377c2"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_19">
<path d="M 1537.849306 615.6
L 1556.590909 615.6
L 1556.590909 613.440706
L 1537.849306 613.440706
<path d="M 1845.419167 615.6
L 1867.909091 615.6
L 1867.909091 613.440706
L 1845.419167 613.440706
z
" clip-path="url(#pce684b8798)" style="fill: #7f7f7f"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97"/>
</g>
<g id="patch_20">
<path d="M 931.870802 111.6
C 1113.664353 111.6 1356.055755 355.469294 1537.849306 355.469294
L 1537.849306 363.879176
C 1356.055755 363.879176 1113.664353 120.009882 931.870802 120.009882
<path d="M 1118.244962 111.6
C 1336.397223 111.6 1627.266906 111.6 1845.419167 111.6
L 1845.419167 350.429294
C 1627.266906 350.429294 1336.397223 350.429294 1118.244962 350.429294
z
" clip-path="url(#pce684b8798)" style="fill: #1f77b4; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_21">
<path d="M 931.870802 120.009882
C 1113.664353 120.009882 1356.055755 368.919176 1537.849306 368.919176
L 1537.849306 408.752471
C 1356.055755 408.752471 1113.664353 159.843176 931.870802 159.843176
<path d="M 368.580833 111.6
C 586.733094 111.6 877.602777 111.6 1095.755038 111.6
L 1095.755038 329.972824
C 877.602777 329.972824 586.733094 329.972824 368.580833 329.972824
z
" clip-path="url(#pce684b8798)" style="fill: #ff7f0e; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_22">
<path d="M 931.870802 159.843176
C 1113.664353 159.843176 1356.055755 413.792471 1537.849306 413.792471
L 1537.849306 420.327176
C 1356.055755 420.327176 1113.664353 166.377882 931.870802 166.377882
<path d="M 1118.244962 350.429294
C 1336.397223 350.429294 1627.266906 355.469294 1845.419167 355.469294
L 1845.419167 363.879176
C 1627.266906 363.879176 1336.397223 358.839176 1118.244962 358.839176
z
" clip-path="url(#pce684b8798)" style="fill: #2ca02c; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_23">
<path d="M 931.870802 166.377882
C 1113.664353 166.377882 1356.055755 425.367176 1537.849306 425.367176
L 1537.849306 569.983059
C 1356.055755 569.983059 1113.664353 310.993765 931.870802 310.993765
<path d="M 1118.244962 358.839176
C 1336.397223 358.839176 1627.266906 368.919176 1845.419167 368.919176
L 1845.419167 408.752471
C 1627.266906 408.752471 1336.397223 398.672471 1118.244962 398.672471
z
" clip-path="url(#pce684b8798)" style="fill: #d62728; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_24">
<path d="M 931.870802 310.993765
C 1113.664353 310.993765 1356.055755 575.023059 1537.849306 575.023059
L 1537.849306 576.386824
C 1356.055755 576.386824 1113.664353 312.357529 931.870802 312.357529
<path d="M 1118.244962 398.672471
C 1336.397223 398.672471 1627.266906 413.792471 1845.419167 413.792471
L 1845.419167 420.327176
C 1627.266906 420.327176 1336.397223 405.207176 1118.244962 405.207176
z
" clip-path="url(#pce684b8798)" style="fill: #9467bd; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_25">
<path d="M 931.870802 312.357529
C 1113.664353 312.357529 1356.055755 581.426824 1537.849306 581.426824
L 1537.849306 588.302471
C 1356.055755 588.302471 1113.664353 319.233176 931.870802 319.233176
<path d="M 1118.244962 405.207176
C 1336.397223 405.207176 1627.266906 425.367176 1845.419167 425.367176
L 1845.419167 569.983059
C 1627.266906 569.983059 1336.397223 549.823059 1118.244962 549.823059
z
" clip-path="url(#pce684b8798)" style="fill: #8c564b; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_26">
<path d="M 931.870802 319.233176
C 1113.664353 319.233176 1356.055755 593.342471 1537.849306 593.342471
L 1537.849306 608.400706
C 1356.055755 608.400706 1113.664353 334.291412 931.870802 334.291412
<path d="M 1118.244962 549.823059
C 1336.397223 549.823059 1627.266906 575.023059 1845.419167 575.023059
L 1845.419167 576.386824
C 1627.266906 576.386824 1336.397223 551.186824 1118.244962 551.186824
z
" clip-path="url(#pce684b8798)" style="fill: #e377c2; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_27">
<path d="M 931.870802 334.291412
C 1113.664353 334.291412 1356.055755 613.440706 1537.849306 613.440706
L 1537.849306 615.6
C 1356.055755 615.6 1113.664353 336.450706 931.870802 336.450706
<path d="M 1118.244962 551.186824
C 1336.397223 551.186824 1627.266906 581.426824 1845.419167 581.426824
L 1845.419167 588.302471
C 1627.266906 588.302471 1336.397223 558.062471 1118.244962 558.062471
z
" clip-path="url(#pce684b8798)" style="fill: #7f7f7f; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_28">
<path d="M 307.150694 335.732824
C 488.944245 335.732824 731.335647 111.6 913.129198 111.6
L 913.129198 173.253529
C 731.335647 173.253529 488.944245 397.386353 307.150694 397.386353
<path d="M 1118.244962 558.062471
C 1336.397223 558.062471 1627.266906 593.342471 1845.419167 593.342471
L 1845.419167 608.400706
C 1627.266906 608.400706 1336.397223 573.120706 1118.244962 573.120706
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_29">
<path d="M 307.150694 403.146353
C 488.944245 403.146353 731.335647 173.253529 913.129198 173.253529
L 913.129198 221.553529
C 731.335647 221.553529 488.944245 451.446353 307.150694 451.446353
<path d="M 1118.244962 573.120706
C 1336.397223 573.120706 1627.266906 613.440706 1845.419167 613.440706
L 1845.419167 615.6
C 1627.266906 615.6 1336.397223 575.28 1118.244962 575.28
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_30">
<path d="M 307.150694 457.206353
C 488.944245 457.206353 731.335647 221.553529 913.129198 221.553529
L 913.129198 234.622941
C 731.335647 234.622941 488.944245 470.275765 307.150694 470.275765
<path d="M 368.580833 335.732824
C 586.733094 335.732824 877.602777 329.972824 1095.755038 329.972824
L 1095.755038 391.626353
C 877.602777 391.626353 586.733094 397.386353 368.580833 397.386353
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_31">
<path d="M 307.150694 476.035765
C 488.944245 476.035765 731.335647 234.622941 913.129198 234.622941
L 913.129198 325.995176
C 731.335647 325.995176 488.944245 567.408 307.150694 567.408
<path d="M 368.580833 403.146353
C 586.733094 403.146353 877.602777 391.626353 1095.755038 391.626353
L 1095.755038 439.926353
C 877.602777 439.926353 586.733094 451.446353 368.580833 451.446353
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_32">
<path d="M 307.150694 573.168
C 488.944245 573.168 731.335647 325.995176 913.129198 325.995176
L 913.129198 339.405529
C 731.335647 339.405529 488.944245 586.578353 307.150694 586.578353
<path d="M 368.580833 457.206353
C 586.733094 457.206353 877.602777 439.926353 1095.755038 439.926353
L 1095.755038 452.995765
C 877.602777 452.995765 586.733094 470.275765 368.580833 470.275765
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_33">
<path d="M 307.150694 592.338353
C 488.944245 592.338353 731.335647 339.405529 913.129198 339.405529
L 913.129198 344.008235
C 731.335647 344.008235 488.944245 596.941059 307.150694 596.941059
<path d="M 368.580833 476.035765
C 586.733094 476.035765 877.602777 452.995765 1095.755038 452.995765
L 1095.755038 544.368
C 877.602777 544.368 586.733094 567.408 368.580833 567.408
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_34">
<path d="M 307.150694 602.701059
C 488.944245 602.701059 731.335647 344.008235 913.129198 344.008235
L 913.129198 356.907176
C 731.335647 356.907176 488.944245 615.6 307.150694 615.6
<path d="M 368.580833 573.168
C 586.733094 573.168 877.602777 544.368 1095.755038 544.368
L 1095.755038 557.778353
C 877.602777 557.778353 586.733094 586.578353 368.580833 586.578353
z
" clip-path="url(#pce684b8798)" style="fill: #bcbd22; fill-opacity: 0.6"/>
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_35">
<path d="M 368.580833 592.338353
C 586.733094 592.338353 877.602777 557.778353 1095.755038 557.778353
L 1095.755038 562.381059
C 877.602777 562.381059 586.733094 596.941059 368.580833 596.941059
z
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="patch_36">
<path d="M 368.580833 602.701059
C 586.733094 602.701059 877.602777 562.381059 1095.755038 562.381059
L 1095.755038 575.28
C 877.602777 575.28 586.733094 615.6 368.580833 615.6
z
" clip-path="url(#p3eb6e461e1)" style="fill: #007e97; fill-opacity: 0.6"/>
</g>
<g id="text_1">
<!-- reserves au début de l'année:3843 -->
<g transform="translate(37.111577 224.649537) scale(0.14 -0.14)">
<g transform="translate(93.543955 224.649537) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-72" d="M 2631 2963
Q 2534 3019 2420 3045
@ -714,7 +730,7 @@ z
</g>
<g id="text_2">
<!-- Utilisation de latelier par les adhérents (Etabli):1085 -->
<g transform="translate(-89.831235 370.702713) scale(0.14 -0.14)">
<g transform="translate(-33.398857 370.702713) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-55" d="M 556 4666
L 1191 4666
@ -983,7 +999,7 @@ z
</g>
<g id="text_3">
<!-- Animation / réservation de salle:850 -->
<g transform="translate(27.670327 431.159478) scale(0.14 -0.14)">
<g transform="translate(84.102705 431.159478) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-41" d="M 2188 4044
L 1331 1722
@ -1079,7 +1095,7 @@ z
</g>
<g id="text_4">
<!-- Atelier:230 -->
<g transform="translate(205.385015 467.604184) scale(0.14 -0.14)">
<g transform="translate(261.817393 467.604184) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-32" d="M 1228 531
L 3431 531
@ -1121,7 +1137,7 @@ z
</g>
<g id="text_5">
<!-- Cotisations:1608 -->
<g transform="translate(164.113452 525.585007) scale(0.14 -0.14)">
<g transform="translate(220.54583 525.585007) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-43" d="M 4122 4306
L 4122 3641
@ -1195,7 +1211,7 @@ z
</g>
<g id="text_6">
<!-- Dons:236 -->
<g transform="translate(215.211265 583.736301) scale(0.14 -0.14)">
<g transform="translate(271.643643 583.736301) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-44" d="M 1259 4147
L 1259 519
@ -1229,7 +1245,7 @@ z
</g>
<g id="text_7">
<!-- Vente quincaillerie:81 -->
<g transform="translate(129.758765 598.502831) scale(0.14 -0.14)">
<g transform="translate(186.191143 598.502831) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-56" d="M 1831 0
L 50 4666
@ -1315,7 +1331,7 @@ z
</g>
<g id="text_8">
<!-- Location outils:227 -->
<g transform="translate(149.059077 613.013654) scale(0.14 -0.14)">
<g transform="translate(205.491455 613.013654) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-4c" d="M 628 4666
L 1259 4666
@ -1360,7 +1376,7 @@ z
</g>
<g id="text_9">
<!-- Total:8160 -->
<g transform="translate(885.979687 108.688437) scale(0.14 -0.14)">
<g transform="translate(1070.479687 108.688437) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-54" d="M -19 4666
L 3928 4666
@ -1388,7 +1404,7 @@ z
</g>
<g id="text_10">
<!-- reserves aujourd'hui:4203 -->
<g transform="translate(1562.83811 234.877772) scale(0.14 -0.14)">
<g transform="translate(1875.405732 234.877772) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-6a" d="M 603 3500
L 1178 3500
@ -1439,7 +1455,7 @@ z
</g>
<g id="text_11">
<!-- Fourniture / service (Eau / Elec / Internet):148 -->
<g transform="translate(1562.83811 363.53736) scale(0.14 -0.14)">
<g transform="translate(1875.405732 363.53736) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-46" d="M 628 4666
L 3309 4666
@ -1514,7 +1530,7 @@ z
</g>
<g id="text_12">
<!-- Achat de matériel, équipement et travaux:701 -->
<g transform="translate(1562.83811 392.978949) scale(0.14 -0.14)">
<g transform="translate(1875.405732 392.978949) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-2c" d="M 750 794
L 1409 794
@ -1589,7 +1605,7 @@ z
</g>
<g id="text_13">
<!-- Consommable outils:115 -->
<g transform="translate(1562.83811 420.922949) scale(0.14 -0.14)">
<g transform="translate(1875.405732 420.922949) scale(0.14 -0.14)">
<use xlink:href="#DejaVuSans-43"/>
<use xlink:href="#DejaVuSans-6f" transform="translate(69.824219 0)"/>
<use xlink:href="#DejaVuSans-6e" transform="translate(131.005859 0)"/>
@ -1616,7 +1632,7 @@ z
</g>
<g id="text_14">
<!-- Loyer:2545 -->
<g transform="translate(1562.83811 501.538243) scale(0.14 -0.14)">
<g transform="translate(1875.405732 501.538243) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-79" d="M 2059 -325
Q 1816 -950 1584 -1140
@ -1650,7 +1666,7 @@ z
</g>
<g id="text_15">
<!-- Charge locative:24 -->
<g transform="translate(1562.83811 579.568066) scale(0.14 -0.14)">
<g transform="translate(1875.405732 579.568066) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-67" d="M 2906 1791
Q 2906 2416 2648 2759
@ -1709,7 +1725,7 @@ z
</g>
<g id="text_16">
<!-- Entretiens et réparations:121 -->
<g transform="translate(1562.83811 589.007772) scale(0.14 -0.14)">
<g transform="translate(1875.405732 589.007772) scale(0.14 -0.14)">
<use xlink:href="#DejaVuSans-45"/>
<use xlink:href="#DejaVuSans-6e" transform="translate(63.183594 0)"/>
<use xlink:href="#DejaVuSans-74" transform="translate(126.5625 0)"/>
@ -1743,7 +1759,7 @@ z
</g>
<g id="text_17">
<!-- Prime dassurance:265 -->
<g transform="translate(1562.83811 604.734713) scale(0.14 -0.14)">
<g transform="translate(1875.405732 604.734713) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-50" d="M 1259 4147
L 1259 2394
@ -1792,7 +1808,7 @@ z
</g>
<g id="text_18">
<!-- Services Bancaires:38 -->
<g transform="translate(1562.83811 618.383478) scale(0.14 -0.14)">
<g transform="translate(1875.405732 618.383478) scale(0.14 -0.14)">
<defs>
<path id="DejaVuSans-53" d="M 3425 4513
L 3425 3897
@ -1884,8 +1900,8 @@ z
</g>
</g>
<defs>
<clipPath id="pce684b8798">
<rect x="225" y="86.4" width="1395" height="554.4"/>
<clipPath id="p3eb6e461e1">
<rect x="270" y="86.4" width="1674" height="554.4"/>
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

4
config
View File

@ -1,4 +1,4 @@
[path]
wp-config=wp-config.php
wp-config=/var/www/bricolesocialclub.org/wp-config.php
budget=budget.csv
save_directory=.
save_directory=/var/www/bsc.pbblanc.fr/wp-content/uploads/compta

24
main.py
View File

@ -65,7 +65,7 @@ def create_accounting_sankey(cursor, save_dir):
ro_name = 'reserves au début de l\'année'
ra_name = 'reserves aujourd\'hui'
t_name = 'Total'
NR.append((ro_name, reserves, {'label_pos':'left'}))
NR.append((ro_name, reserves, {'label_pos':'left', 'color':'#007e97'}))
flows.append((ro_name, t_name, reserves))
# lister les comptes de charges et produit
@ -91,8 +91,8 @@ def create_accounting_sankey(cursor, save_dir):
NR.append((a.label, tmp_tot, {'label_pos':'left', 'color':'#007e97' }))
flows.append((a.label, t_name, tmp_tot))
NC.insert(0, (ra_name, tmp_res, {'label_pos':'right'}))
flows.append((t_name, ra_name, tmp_res))
NC.insert(0, (ra_name, tmp_res, {'label_pos':'right', 'color':'#007e97'}))
flows.insert(0, (t_name, ra_name, tmp_res))
nodes = [
NR,
[('Total', tot, {'label_pos':'top', 'color':'#007e97'})],
@ -111,7 +111,8 @@ def create_accounting_sankey(cursor, save_dir):
plt.close()
def get_income_and_expense_accounts(cursor):
print("get_income_and_expense_accounts")
VERBOSE = False
if VERBOSE : print("get_income_and_expense_accounts")
cursor.execute(
"SELECT account_number, label FROM llx_accounting_account WHERE fk_pcg_version = 'PCG-BSC' AND active = 1;"
)
@ -121,12 +122,13 @@ def get_income_and_expense_accounts(cursor):
if (tmp == '6' or tmp == '7') and int(account_number) > 10:
accounts.append(Account(label, account_number, int(tmp)))
[print(f'account {a.number} / {a.label}') for a in accounts]
if VERBOSE : [print(f'account {a.number} / {a.label}') for a in accounts]
return accounts
def get_bank_reserves(cursor, date:str):
print('get_bank_reserves')
VERBOSE = False
if VERBOSE : print('get_bank_reserves')
total = 0
cursor.execute(
"SELECT piece_num, numero_compte, label_compte, doc_date, code_journal, debit, credit FROM llx_accounting_bookkeeping WHERE (numero_compte = ? OR numero_compte = ?) AND doc_date = ? AND code_journal = ?;",
@ -134,9 +136,9 @@ def get_bank_reserves(cursor, date:str):
)
for piece_num, numero_compte, label_compte, doc_date, code_journal, debit, credit in cursor:
#print(piece_num, numero_compte, label_compte, doc_date, code_journal, debit, credit, sep=" | ")
print(f'ajout de : {debit} provenant du compte {label_compte} au total')
if VERBOSE : print(f'ajout de : {debit} provenant du compte {label_compte} au total')
total += debit
print(f'total = {total}')
if VERBOSE : print(f'total = {total}')
return total
@ -176,7 +178,6 @@ def import_csv(csv:str):
def extract_value(content:str, param:str):
tmp = re.search(rf'define...{param}.+', content)
print('test')
if tmp is not None:
return tmp.group().split(',')[1].split('\'')[1]
else:
@ -184,6 +185,7 @@ def extract_value(content:str, param:str):
def get_sum_of_operations(cursor, date:str, account:Account):
VERBOSE = False
tot_cred = tot_deb = 0
cursor.execute(
"SELECT piece_num, numero_compte, label_compte, doc_date, code_journal, debit, credit FROM llx_accounting_bookkeeping WHERE numero_compte = ? AND doc_date >= ?",
@ -193,7 +195,7 @@ def get_sum_of_operations(cursor, date:str, account:Account):
tot_cred += credit
tot_deb += debit
print(f'pour le compte {account.number} : credit = {tot_cred} / debit = {tot_deb} à partir du {date}')
if VERBOSE : print(f'pour le compte {account.number} : credit = {tot_cred} / debit = {tot_deb} à partir du {date}')
return int(tot_deb), int(tot_cred)
@ -256,6 +258,7 @@ def create_budget_sankey(
if __name__ == "__main__":
VERBOSE = False
conf = cp.ConfigParser()
conf.read('config')
@ -278,5 +281,6 @@ if __name__ == "__main__":
print(msg)
print(f'wp-config = {path_wp_config}')
if VERBOSE :
respo = input('Appuyer sur entrée pour terminer')