Default time is now 16:00

This commit is contained in:
Profitroll 2024-05-30 17:46:58 +02:00
parent acd1746344
commit 1b0870fca9
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
2 changed files with 3 additions and 3 deletions

View File

@ -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}}

View File

@ -4,6 +4,6 @@
"enabled": true,
"location": 1,
"offset": 1,
"time_hour": 18,
"time_hour": 16,
"time_minute": 0
}