Better indexing logic?

syseng_tweaks
Tyler Goodlet 2021-04-23 11:14:08 -04:00
parent 7b8c482719
commit ecd94ce24d
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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]