Fix datasync consumer setting save logic

This commit is contained in:
Lance Edgar 2023-06-01 11:37:26 -05:00
parent fd2b290fd0
commit 90cb25446b

View file

@ -286,7 +286,7 @@ class DataSyncThreadView(MasterView):
if consumer['enabled']:
consumers.append(ckey)
settings.extend([
{'name': 'rattail.datasync.{}.consumer.spec.{}'.format(pkey, ckey),
{'name': f'rattail.datasync.{pkey}.consumer.{ckey}.spec',
'value': consumer['consumer_spec']},
{'name': 'rattail.datasync.{}.consumer.{}.db'.format(pkey, ckey),
'value': consumer['consumer_dbkey']},