Commit 3a59e60c authored by Kedar Aitawdekar's avatar Kedar Aitawdekar 💻

Added script to purge non admin user data under doc/deployer

parent d1bb83c7
from gnowsys_ndf.ndf.models import node_collection
from gnowsys_ndf.ndf.models.node import Node
from gnowsys_ndf.ndf.views.methods import delete_node
def test_data():
activity_pages_creator = node_collection.find({'_type': 'GSystem', 'member_of': Node.get_name_id_from_type('')})
def main():
# [ for p in node_collection.find({'_type': 'GSystem', 'created_by': {'$in': activity_pages_creator.distinct('created_by') }, 'member_of': Node.get_name_id_from_type('Page', 'GSystemType')[1] }) ]
if __name__ == '__main__':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment