From b94d114353260f6b8465de049d5c04345068d7bc Mon Sep 17 00:00:00 2001 From: Alexis Koralewski Date: Mon, 17 Jul 2023 09:19:51 +0200 Subject: [PATCH] typo preference target2night --- src/core/pyros_django/seq_submit/functions.py | 2 +- src/core/pyros_django/seq_submit/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/pyros_django/seq_submit/functions.py b/src/core/pyros_django/seq_submit/functions.py index a7e4a23..b7ff5c2 100644 --- a/src/core/pyros_django/seq_submit/functions.py +++ b/src/core/pyros_django/seq_submit/functions.py @@ -468,7 +468,7 @@ def create_sequence_pickle(sequence): try: # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon #fullseq_dict["ephem"] = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev) - ephem = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev) + ephem = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preference=sequence.start_expo_pref, duskelev=duskelev) except ValueError: errors.append("Target value is not valid") except guitastro.ephemeris.EphemerisException as ephemException: diff --git a/src/core/pyros_django/seq_submit/views.py b/src/core/pyros_django/seq_submit/views.py index 6931a2c..e0ca804 100644 --- a/src/core/pyros_django/seq_submit/views.py +++ b/src/core/pyros_django/seq_submit/views.py @@ -310,7 +310,7 @@ def sequence_validate(request, seq_id): message = "" try: # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon - ephem = eph.target2night(seq.config_attributes.get("target"), seq.night_id, None, None, preferance=seq.start_expo_pref, duskelev=duskelev) + ephem = eph.target2night(seq.config_attributes.get("target"), seq.night_id, None, None, preference=seq.start_expo_pref, duskelev=duskelev) except ValueError: message += "Target value is not valid" except guitastro.ephemeris.EphemerisException as ephemException: -- libgit2 0.21.2