Fixed an access on the config by a wrong config key

This commit is contained in:
simwai
2024-07-05 22:17:40 +02:00
parent 77b4689ac8
commit af505b346c

View File

@@ -110,7 +110,7 @@ class IProtection(LoggingMixin, ABC):
now_time = datetime.now(timezone.utc)
unlock_at = datetime.strptime(
str(self._protection_config.get("unlock_at_config")), "%H:%M"
str(self._protection_config.get("unlock_at")), "%H:%M"
).replace(day=now_time.day, year=now_time.year, month=now_time.month)
if unlock_at.time() < now_time.time():