Skip to content

Commit

Permalink
Fixed the log message appearing for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
evgrmn committed Jun 4, 2024
1 parent 3d47a9c commit 463a181
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ abstract: >-
This software is designed for trading on the Bitmex.com
and Bybit.com marketplaces and allows you to control trade
balances and make transactions manually and automatically.
version: 24.5.1
date-released: '2024-05-16'
version: 24.6.0
date-released: '2024-06-04'
1 change: 0 additions & 1 deletion api/bybit/ws.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import threading
from collections import OrderedDict

Expand Down
6 changes: 3 additions & 3 deletions common/init.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import time
import logging
import os
import sqlite3
import threading
import time
from collections import OrderedDict
from datetime import datetime, timezone
from sqlite3 import Error
Expand All @@ -23,13 +23,13 @@ class ListenLogger(logging.Filter):
def filter(self, record):
path = record.pathname.replace(var.working_directory, "")[:-3]
path = path.replace("/", ".")
path = path.replace("\\", ".")
if path[0] == ".":
path = path[1:]
record.name = path
return True



class Init(WS, Variables):
file_lock = threading.Lock()

Expand Down
1 change: 0 additions & 1 deletion connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def setup():
var.robots_thread_is_active = True
thread = threading.Thread(target=robots_thread)
thread.start()



def setup_market(ws: Markets):
Expand Down
6 changes: 3 additions & 3 deletions functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,11 +1192,11 @@ def find_order(self: Markets, price: float, symbol: str) -> Union[float, str]:
qty = ""

return qty

def not_defined_robot_color(self: Markets, emi=None, clOrdID=None) -> None:
"""
A robot has NOT DEFINED status if it is not listed in the robots
SQLite table, but has an open position or an active order. In this
A robot has NOT DEFINED status if it is not listed in the robots
SQLite table, but has an open position or an active order. In this
case, it appears on the screen in red.
"""
if clOrdID:
Expand Down

0 comments on commit 463a181

Please sign in to comment.