minor min

This commit is contained in:
jr-k 2024-08-08 00:21:45 +02:00
parent 9ec77ede6f
commit 69d477eeb1
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ SECRET_KEY=ANY_SECRET_KEY_HERE
PORT=5000
BIND=0.0.0.0
# HTTP External Storage Server
PORT_HTTP_EXTERNAL_STORAGE=5001
BIND_HTTP_EXTERNAL_STORAGE=0.0.0.0

View File

@ -13,7 +13,7 @@ class Slide:
self._id = id if id else None
self._playlist_id = playlist_id
self._content_id = content_id
self._duration = duration if duration >= 0 else 0
self._duration = duration if isinstance(duration, int) and duration >= 0 else 0
self._delegate_duration = delegate_duration
self._enabled = enabled
self._is_notification = is_notification