big fix: treat history_only=None properly

This commit is contained in:
2025-05-21 13:08:06 +02:00
parent b1ffe99a5d
commit 822e3ab6a2

View File

@ -91,9 +91,9 @@ class Server:
tags['device'] = devices[0] if len(devices) == 1 else devices
return streams, tags, ','.join(device_names)
def register_client(self, instrument=None, stream=None, device=None, history_only='0'):
def register_client(self, instrument=None, stream=None, device=None, history_only=None):
streams, tags, device_name = self.lookup_streams(instrument, stream, device)
if history_only != '0':
if (history_only or '0') != '0':
# create dummy client
client = self.client_cls(self, [], '', '')
else: