mirror of
				https://github.com/simon987/od-database.git
				synced 2025-11-04 06:56:52 +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:
 | 
			
		||||
        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:
 | 
			
		||||
 | 
			
		||||
@ -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")
 | 
			
		||||
 | 
			
		||||
@ -14,3 +14,4 @@ lxml
 | 
			
		||||
elasticsearch
 | 
			
		||||
python-dateutil
 | 
			
		||||
flask_httpauth
 | 
			
		||||
ujson
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user