From 1b0870fca9bae63d661d3c65cff38f6d636439c1 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 30 May 2024 17:46:58 +0200 Subject: [PATCH] Default time is now 16:00 --- classes/pyrouser.py | 4 ++-- validation/examples/user.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/pyrouser.py b/classes/pyrouser.py index 38b3764..9353e6e 100644 --- a/classes/pyrouser.py +++ b/classes/pyrouser.py @@ -43,7 +43,7 @@ class PyroUser: enabled: bool = True, location_id: int = 0, offset: int = 1, - time_hour: int = 18, + time_hour: int = 16, time_minute: int = 0, ): db_entry = await col_users.find_one({"id": id}) @@ -108,7 +108,7 @@ class PyroUser: await col_users.update_one({"_id": self._id}, {"$set": {"offset": offset}}) self.offset = offset - async def update_time(self, hour: int = 18, minute: int = 0) -> None: + async def update_time(self, hour: int = 16, minute: int = 0) -> None: logger.debug("%s's time has been set to %s h. %s m.", self.id, hour, minute) await col_users.update_one( {"_id": self._id}, {"$set": {"time_hour": hour, "time_minute": minute}} diff --git a/validation/examples/user.json b/validation/examples/user.json index b4765c9..db15f1a 100644 --- a/validation/examples/user.json +++ b/validation/examples/user.json @@ -4,6 +4,6 @@ "enabled": true, "location": 1, "offset": 1, - "time_hour": 18, + "time_hour": 16, "time_minute": 0 } \ No newline at end of file