コード例 #1
0
ファイル: manage.py プロジェクト: tmtmtmtm/voteit-api
def deleteparties():
    db.drop_collection('parties')
コード例 #2
0
ファイル: manage.py プロジェクト: tmtmtmtm/voteit-api
def deletemotions():
    db.drop_collection('votes')
    db.drop_collection('vote_events')
    db.drop_collection('motions')
コード例 #3
0
ファイル: manage.py プロジェクト: tmtmtmtm/voteit-api
def deletepeople():
    db.drop_collection('persons')
コード例 #4
0
def deleteparties():
    db.drop_collection('parties')
コード例 #5
0
ファイル: manage.py プロジェクト: tmtmtmtm/voteit-api
def deletealldata():
    for coll in db.collection_names():
        if coll in ['system.indexes', 'system.users']:
            continue
        print coll
        db.drop_collection(coll)
コード例 #6
0
def deleteissues():
    db.drop_collection(issues)
コード例 #7
0
def deletepeople():
    db.drop_collection('persons')
コード例 #8
0
def reset():
    for coll in db.collection_names():
        if coll in ['issues', 'system.indexes', 'system.users']:
            continue
        print coll
        db.drop_collection(coll)
コード例 #9
0
ファイル: manage.py プロジェクト: tmtmtmtm/voteit-api
def deletemotions():
    db.drop_collection('votes')
    db.drop_collection('vote_events')
    db.drop_collection('motions')
コード例 #10
0
ファイル: manage.py プロジェクト: tmtmtmtm/voteit-api
def deletealldata():
    for coll in db.collection_names():
        if coll in ['system.indexes', 'system.users']:
            continue
        print coll
        db.drop_collection(coll)
コード例 #11
0
ファイル: manage.py プロジェクト: e6/voteit-server
def deleteissues():
    db.drop_collection(issues)
コード例 #12
0
ファイル: manage.py プロジェクト: e6/voteit-server
def reset():
    for coll in db.collection_names():
        if coll in ['issues', 'system.indexes', 'system.users']:
            continue
        print coll
        db.drop_collection(coll)