Commit b94d114353260f6b8465de049d5c04345068d7bc

Authored by Alexis Koralewski
1 parent 35e30a7d
Exists in dev

typo preference target2night

src/core/pyros_django/seq_submit/functions.py
... ... @@ -468,7 +468,7 @@ def create_sequence_pickle(sequence):
468 468 try:
469 469 # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon
470 470 #fullseq_dict["ephem"] = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev)
471   - ephem = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preferance=sequence.start_expo_pref, duskelev=duskelev)
  471 + ephem = eph.target2night(fullseq_dict["sequence"]["config_attributes"]["target"], sequence.night_id, None, None, preference=sequence.start_expo_pref, duskelev=duskelev)
472 472 except ValueError:
473 473 errors.append("Target value is not valid")
474 474 except guitastro.ephemeris.EphemerisException as ephemException:
... ...
src/core/pyros_django/seq_submit/views.py
... ... @@ -310,7 +310,7 @@ def sequence_validate(request, seq_id):
310 310 message = ""
311 311 try:
312 312 # TODO remplacer les none par les fichiers pickle de ephem_sun & ephem_moon
313   - ephem = eph.target2night(seq.config_attributes.get("target"), seq.night_id, None, None, preferance=seq.start_expo_pref, duskelev=duskelev)
  313 + ephem = eph.target2night(seq.config_attributes.get("target"), seq.night_id, None, None, preference=seq.start_expo_pref, duskelev=duskelev)
314 314 except ValueError:
315 315 message += "Target value is not valid"
316 316 except guitastro.ephemeris.EphemerisException as ephemException:
... ...