mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 21:14:15 +02:00
Modernize runtime compatibility and initialize Bearhub fork
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import logging
|
||||
import time
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timezone
|
||||
from threading import Thread
|
||||
from typing import Optional
|
||||
|
||||
@@ -53,7 +53,7 @@ class SuggestionsLoader(Thread):
|
||||
self.suggestions = self.manager.read_cached(check_file=False)
|
||||
else:
|
||||
try:
|
||||
timestamp = datetime.utcnow().timestamp()
|
||||
timestamp = datetime.now(timezone.utc).timestamp()
|
||||
self.suggestions = self.manager.download()
|
||||
|
||||
if self.suggestions:
|
||||
|
||||
Reference in New Issue
Block a user