mirror of
https://github.com/simon987/od-database.git
synced 2025-04-20 02:46:45 +00:00
Some adjustments to make it work on Stretch server
This commit is contained in:
parent
dffd032659
commit
f3c7b551d2
@ -68,7 +68,7 @@ def export_to_json(q: Queue, out_file: str) -> int:
|
|||||||
with open(out_file, "w") as f:
|
with open(out_file, "w") as f:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
next_file: File = q.get_nowait()
|
next_file = q.get_nowait()
|
||||||
f.write(next_file.to_json() + "\n")
|
f.write(next_file.to_json() + "\n")
|
||||||
counter += 1
|
counter += 1
|
||||||
except Empty:
|
except Empty:
|
||||||
|
@ -73,4 +73,4 @@ def get_file_list(website_id):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(port=5001)
|
app.run(port=5001, host="0.0.0.0")
|
||||||
|
@ -14,3 +14,4 @@ lxml
|
|||||||
elasticsearch
|
elasticsearch
|
||||||
python-dateutil
|
python-dateutil
|
||||||
flask_httpauth
|
flask_httpauth
|
||||||
|
ujson
|
||||||
|
Loading…
x
Reference in New Issue
Block a user