Expose some settings for Trainwreck DB rotation

This commit is contained in:
Lance Edgar 2023-01-02 13:12:01 -06:00
parent d21826c70d
commit 9f763b46eb
2 changed files with 44 additions and 0 deletions

View file

@ -384,6 +384,19 @@ class TransactionView(MasterView):
'engines_data': engines_data,
})
def configure_get_simple_settings(self):
return [
# rotation
{'section': 'trainwreck',
'option': 'use_rotation',
'type': bool},
{'section': 'trainwreck',
'option': 'current_years',
'type': int},
]
def configure_get_context(self):
context = super(TransactionView, self).configure_get_context()