18 lines
369 B
Python
18 lines
369 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
"""Sync in-memory rights registry to PostgreSQL."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import sys
|
||
|
|
|
||
|
|
|
||
|
|
def main() -> int:
|
||
|
|
import rights_registrations # noqa: F401 — side-effect registration
|
||
|
|
from rights_registry import sync_rights_registry_to_db
|
||
|
|
|
||
|
|
return sync_rights_registry_to_db()
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
sys.exit(main())
|