mirror of
https://github.com/NohamR/OqeeRewind.git
synced 2026-11-25 15:29:46 +00:00
Times + logging changes
This commit is contained in:
1 parent
51a58d3694
commit
ff8462d3df
3 files changed
+10
-8
No files matched your search
+2
-1
@@ -12,6 +12,7 @@ from utils.stream import fetch_segment
|
||||
from utils.logging_config import logger
|
||||
|
||||
FRANCE_TZ = ZoneInfo("Europe/Paris")
|
||||
TIMESCALE = 90000
|
||||
|
||||
|
||||
def convert_ticks_to_sec(ticks, timescale):
|
||||
@@ -59,7 +60,7 @@ async def bruteforce(track_id, date, batch_size=20000):
|
||||
valid_ticks = []
|
||||
total_requests = 288000
|
||||
|
||||
logger.debug("Starting bruteforce for %s near %s", track_id, date)
|
||||
logger.debug("Starting bruteforce for %s near (%s) %s", track_id, date, convert_sec_to_date(convert_ticks_to_sec(date, TIMESCALE)))
|
||||
|
||||
start_time = time.time()
|
||||
|
||||
|
||||
Reference in new issue
Block a user