Better indexing logic?
parent
7b8c482719
commit
ecd94ce24d
|
@ -79,7 +79,7 @@ class DpiAwareFont:
|
|||
return self._qfont
|
||||
|
||||
@property
|
||||
def px_size(self):
|
||||
def px_size(self) -> int:
|
||||
return self._qfont.pixelSize()
|
||||
|
||||
def configure_to_dpi(self, screen: Optional[QtGui.QScreen] = None):
|
||||
|
|
|
@ -337,7 +337,7 @@ async def start_order_mode(
|
|||
indexes = ohlc['time'] >= time
|
||||
|
||||
if any(indexes):
|
||||
return ohlc['index'][indexes[-1]]
|
||||
return ohlc['index'][indexes][-1]
|
||||
else:
|
||||
return ohlc['index'][-1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue