コード例 #1
0
 def persistent_log_on_capture_taken(self) -> bool:
     return GeneralSettings.get().log_to_db_camera_capture
コード例 #2
0
 def email_log_on_timelapse_error(self) -> bool:
     return GeneralSettings.get().send_email_on_timelapse_error
コード例 #3
0
 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)
コード例 #5
0
 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
コード例 #8
0
 def numbers_of_failures_to_reboot_after(self) -> int:
     return GeneralSettings.get().nb_of_failures_to_reboot_after
コード例 #9
0
 def hard_reset_on_timelapse_error(self) -> bool:
     return GeneralSettings.get().hard_reset_on_timelapse_error