Autoriser trois ans de synchronisation GMAO
Some checks are pending
CI - Tests et Syntax / lint-and-test (push) Waiting to run

This commit is contained in:
root 2026-08-16 21:43:29 +00:00
parent 7e5fe00384
commit 801a0c856d
3 changed files with 6 additions and 5 deletions

View file

@ -8,7 +8,8 @@ from app_new.extensions import db
from app_new.outlook.models import GmaoContext from app_new.outlook.models import GmaoContext
gmao_config_bp = Blueprint('gmao_config', __name__, template_folder='templates') gmao_config_bp = Blueprint('gmao_config', __name__, template_folder='templates')
LOOKBACK_MAX_HOURS = 24 * 365 # Autoriser une synchronisation/analyse jusqu'à trois ans en arrière.
LOOKBACK_MAX_HOURS = 24 * 365 * 3
def _bounded_int(value, default, minimum=1, maximum=None): def _bounded_int(value, default, minimum=1, maximum=None):

View file

@ -250,7 +250,7 @@
</div> </div>
<div class="col-md-4 mb-3"> <div class="col-md-4 mb-3">
<label class="form-label">Lookback ENT / interprétation (heures)</label> <label class="form-label">Lookback ENT / interprétation (heures)</label>
<input type="number" name="auto_interpret_lookback_hours" class="form-control" min="1" max="8760" <input type="number" name="auto_interpret_lookback_hours" class="form-control" min="1" max="26280"
value="{{ context.auto_interpret_lookback_hours or 24 }}"> value="{{ context.auto_interpret_lookback_hours or 24 }}">
<small class="text-muted">Maximum : 8 760 heures (365 jours).</small> <small class="text-muted">Maximum : 8 760 heures (365 jours).</small>
</div> </div>
@ -307,7 +307,7 @@
</div> </div>
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<label class="form-label">Lookback (heures)</label> <label class="form-label">Lookback (heures)</label>
<input type="number" name="outlook_sync_lookback_hours" class="form-control" min="1" max="8760" <input type="number" name="outlook_sync_lookback_hours" class="form-control" min="1" max="26280"
value="{{ context.outlook_sync_lookback_hours or 24 }}"> value="{{ context.outlook_sync_lookback_hours or 24 }}">
<small class="text-muted">Maximum : 8 760 heures (365 jours).</small> <small class="text-muted">Maximum : 8 760 heures (365 jours).</small>
</div> </div>

View file

@ -250,7 +250,7 @@
</div> </div>
<div class="col-md-4 mb-3"> <div class="col-md-4 mb-3">
<label class="form-label">Lookback ENT / interprétation (heures)</label> <label class="form-label">Lookback ENT / interprétation (heures)</label>
<input type="number" name="auto_interpret_lookback_hours" class="form-control" min="1" max="8760" <input type="number" name="auto_interpret_lookback_hours" class="form-control" min="1" max="26280"
value="{{ context.auto_interpret_lookback_hours or 24 }}"> value="{{ context.auto_interpret_lookback_hours or 24 }}">
<small class="text-muted">Maximum : 8 760 heures (365 jours).</small> <small class="text-muted">Maximum : 8 760 heures (365 jours).</small>
</div> </div>
@ -307,7 +307,7 @@
</div> </div>
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<label class="form-label">Lookback (heures)</label> <label class="form-label">Lookback (heures)</label>
<input type="number" name="outlook_sync_lookback_hours" class="form-control" min="1" max="8760" <input type="number" name="outlook_sync_lookback_hours" class="form-control" min="1" max="26280"
value="{{ context.outlook_sync_lookback_hours or 24 }}"> value="{{ context.outlook_sync_lookback_hours or 24 }}">
<small class="text-muted">Maximum : 8 760 heures (365 jours).</small> <small class="text-muted">Maximum : 8 760 heures (365 jours).</small>
</div> </div>