remove emojis from console

This commit is contained in:
Dobromir Popov
2025-10-25 16:35:08 +03:00
parent 5aa4925cff
commit b8f54e61fa
75 changed files with 828 additions and 828 deletions

View File

@@ -39,10 +39,10 @@ def test_backend_data_loading():
)
if initial_df is None or initial_df.empty:
print(" FAILED: No initial data loaded")
print(" FAILED: No initial data loaded")
return
print(f" Loaded {len(initial_df)} initial candles")
print(f" Loaded {len(initial_df)} initial candles")
print(f" First timestamp: {initial_df.index[0]}")
print(f" Last timestamp: {initial_df.index[-1]}")
@@ -59,20 +59,20 @@ def test_backend_data_loading():
)
if older_df is None or older_df.empty:
print(" FAILED: No older data loaded")
print(" FAILED: No older data loaded")
print(" This might mean:")
print(" - No data exists before this timestamp in DuckDB")
print(" - The query is not working correctly")
else:
print(f" Loaded {len(older_df)} older candles")
print(f" Loaded {len(older_df)} older candles")
print(f" First timestamp: {older_df.index[0]}")
print(f" Last timestamp: {older_df.index[-1]}")
# Check if older data is actually older
if older_df.index[-1] < first_timestamp:
print(f" Data is correctly older (last older candle: {older_df.index[-1]} < first initial: {first_timestamp})")
print(f" Data is correctly older (last older candle: {older_df.index[-1]} < first initial: {first_timestamp})")
else:
print(f" WARNING: Data is NOT older! Last older: {older_df.index[-1]} >= first initial: {first_timestamp}")
print(f" WARNING: Data is NOT older! Last older: {older_df.index[-1]} >= first initial: {first_timestamp}")
# Test 3: Load newer data (after last timestamp)
print(f"\n5. Loading newer data AFTER {initial_df.index[-1]}...")
@@ -87,17 +87,17 @@ def test_backend_data_loading():
)
if newer_df is None or newer_df.empty:
print(" No newer data loaded (this is expected if we're at the latest data)")
print(" No newer data loaded (this is expected if we're at the latest data)")
else:
print(f" Loaded {len(newer_df)} newer candles")
print(f" Loaded {len(newer_df)} newer candles")
print(f" First timestamp: {newer_df.index[0]}")
print(f" Last timestamp: {newer_df.index[-1]}")
# Check if newer data is actually newer
if newer_df.index[0] > last_timestamp:
print(f" Data is correctly newer (first newer candle: {newer_df.index[0]} > last initial: {last_timestamp})")
print(f" Data is correctly newer (first newer candle: {newer_df.index[0]} > last initial: {last_timestamp})")
else:
print(f" WARNING: Data is NOT newer! First newer: {newer_df.index[0]} <= last initial: {last_timestamp}")
print(f" WARNING: Data is NOT newer! First newer: {newer_df.index[0]} <= last initial: {last_timestamp}")
# Test 4: Check DuckDB directly
print(f"\n6. Checking DuckDB storage directly...")
@@ -110,7 +110,7 @@ def test_backend_data_loading():
print(f" Total candles in DuckDB: {total_count}")
if total_count == 0:
print(" No data in DuckDB! Need to fetch from API first.")
print(" No data in DuckDB! Need to fetch from API first.")
else:
# Get time range
query = """
@@ -129,7 +129,7 @@ def test_backend_data_loading():
print(f" Time range: {min_ts} to {max_ts}")
print(f" Duration: {max_ts - min_ts}")
else:
print(" DuckDB storage not available")
print(" DuckDB storage not available")
print("\n" + "=" * 80)
print("Test Complete")