mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 10:34:17 +00:00
4a373be939
* Bump black from 23.1.0 to 24.3.0 Bumps [black](https://github.com/psf/black) from 23.1.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.1.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fixed pre commit black issues w/ burnettk --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jasquat <jasquat@users.noreply.github.com>
17 lines
446 B
Python
17 lines
446 B
Python
"""Deletes all permissions and then re-imports from yaml file."""
|
|
|
|
from spiffworkflow_backend import create_app
|
|
from spiffworkflow_backend.services.authorization_service import AuthorizationService
|
|
|
|
|
|
def main() -> None:
|
|
"""Main."""
|
|
app = create_app()
|
|
with app.app_context():
|
|
AuthorizationService.delete_all_permissions()
|
|
AuthorizationService.import_permissions_from_yaml_file()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|