コード例 #1
0
ファイル: tests.py プロジェクト: GregePorter/editorsnotes
def flush_es_indexes():
    if en_index.exists():
        en_index.delete()
    en_index.create()

    if activity_index.exists():
        activity_index.delete()
    activity_index.create()
コード例 #2
0
ファイル: tests.py プロジェクト: GregePorter/editorsnotes
def delete_es_indexes():
    if en_index.exists():
        en_index.delete()
    if activity_index.exists():
        activity_index.delete()