ansible/roles/modernpaste/files/deactivate-paste.py

9 lines
233 B
Python
Raw Normal View History

#!/usr/bin/env python
import sys
sys.path.append('/usr/share/modern-paste/app')
import modern_paste
from util.cryptography import get_decid
from database.paste import deactivate_paste
print(deactivate_paste(get_decid(sys.argv[1])))