Add a weekly cadence to the match schedule #15

Merged
mdiluz merged 7 commits from issue-9-advanced-cadence into main 2024-09-22 14:26:39 +01:00
Showing only changes of commit 2ad7ed2ff2 - Show all commits

View file

@ -232,11 +232,12 @@ class _State():
@wraps(func)
def inner(self, *args, **kwargs):
tmp = _State(self._dict, self._file)
func(tmp, *args, **kwargs)
ret = func(tmp, *args, **kwargs)
_SCHEMA.validate(tmp._dict)
if tmp._file:
_save(tmp._file, tmp._dict)
self._dict = tmp._dict
return ret
return inner