Very minor refactor

This commit is contained in:
simon987
2018-04-22 12:41:58 -04:00
parent 4b151966b3
commit 213cc61da9
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
import json
import elasticsearch
from elasticsearch.exceptions import TransportError
from threading import Thread
import subprocess
import requests
@@ -34,7 +33,7 @@ class Indexer:
@staticmethod
def run_elasticsearch():
if platform.system() == "Windows":
subprocess.Popen(["elasticsearch\\bin\\elasticsearch.bat"])
else: