channelstream: fix channel hashing with str

This commit is contained in:
RhodeCode Admin 2023-07-26 17:27:45 +02:00
parent 8ae0e8de44
commit 10c3fba396

View file

@ -178,7 +178,7 @@ def parse_channels_info(info_result, include_channel_info=None):
def log_filepath(history_location, channel_name):
channel_hash = ascii_str(sha1_safe(channel_name))
channel_hash = sha1_safe(channel_name, return_type='str')
filename = f'{channel_hash}.log'
filepath = os.path.join(history_location, filename)
return filepath