mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
blockingio error
This commit is contained in:
@@ -802,6 +802,9 @@ class DatabaseWriter:
|
||||
if start_time < earliest_timestamp:
|
||||
start_time = earliest_time
|
||||
|
||||
# Set end_time to be one interval after start_time
|
||||
end_time = start_time + timedelta(minutes=minutes)
|
||||
|
||||
results_file = (
|
||||
self.export_directory
|
||||
+ "/"
|
||||
@@ -820,7 +823,7 @@ class DatabaseWriter:
|
||||
"read"
|
||||
) as conn, conn.cursor() as cursor:
|
||||
await cursor.execute(
|
||||
query, (start_time.isoformat(), cutoff_time.isoformat())
|
||||
query, (start_time.isoformat(), end_time.isoformat())
|
||||
)
|
||||
|
||||
headers = OrderedDict()
|
||||
|
||||
@@ -69,7 +69,7 @@ class StdOutSink:
|
||||
import os
|
||||
import sys
|
||||
|
||||
os.set_blocking(sys.__stdout__.fileno(), False) # type: ignore
|
||||
os.set_blocking(sys.__stdout__.fileno(), True) # type: ignore
|
||||
cleaned_message = AUTH_TOKEN_FILTER.sub(r"\1********", message)
|
||||
if cleaned_message != message:
|
||||
cleaned_message = f"{cleaned_message}\n"
|
||||
|
||||
Reference in New Issue
Block a user