Some adjustments to make it work on Stretch server

This commit is contained in:
Simon 2018-06-14 17:09:05 -04:00
parent dffd032659
commit f3c7b551d2
3 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ def export_to_json(q: Queue, out_file: str) -> int:
with open(out_file, "w") as f:
while True:
try:
next_file: File = q.get_nowait()
next_file = q.get_nowait()
f.write(next_file.to_json() + "\n")
counter += 1
except Empty:

View File

@ -73,4 +73,4 @@ def get_file_list(website_id):
if __name__ == "__main__":
app.run(port=5001)
app.run(port=5001, host="0.0.0.0")

View File

@ -14,3 +14,4 @@ lxml
elasticsearch
python-dateutil
flask_httpauth
ujson