def persistent_log_on_capture_taken(self) -> bool:
     return GeneralSettings.get().log_to_db_camera_capture
 def email_log_on_timelapse_error(self) -> bool:
     return GeneralSettings.get().send_email_on_timelapse_error
 def seconds_to_wait_after_hard_reset(self) -> int:
     return GeneralSettings.get().seconds_to_wait_after_hard_reset
예제 #4
0
 def get(self, request, *args, **kwargs):
     GeneralSettings.load()
     return super().get(request, *args, **kwargs)
 def autodetect_cameras_on_start(self) -> bool:
     return GeneralSettings.get().autodetect_cameras_on_start
예제 #6
0
 def emails(self) -> Iterable[str]:
     return GeneralSettings.get().emails.split()
예제 #7
0
 def email_subject_prefix(self) -> str:
     return GeneralSettings.get().email_subject_prefix
 def numbers_of_failures_to_reboot_after(self) -> int:
     return GeneralSettings.get().nb_of_failures_to_reboot_after
 def hard_reset_on_timelapse_error(self) -> bool:
     return GeneralSettings.get().hard_reset_on_timelapse_error