diff options
| author | Alexander_Kabui | 2024-12-17 22:23:04 +0300 |
|---|---|---|
| committer | Alexander_Kabui | 2024-12-17 22:23:04 +0300 |
| commit | 90a39a513da56612da1b2d5e3268b04922568db8 (patch) | |
| tree | 37f8ee71c38302281254c3bc15c72927a05a3f5e /gn3/api/rqtl2.py | |
| parent | 0c9885d22ff89b5529757b30f83143396ca43e5e (diff) | |
| download | genenetwork3-90a39a513da56612da1b2d5e3268b04922568db8.tar.gz | |
feat: Init integrate streaming functionality to rqtl1.
Diffstat (limited to 'gn3/api/rqtl2.py')
| -rw-r--r-- | gn3/api/rqtl2.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gn3/api/rqtl2.py b/gn3/api/rqtl2.py index 55d847e..a6ac411 100644 --- a/gn3/api/rqtl2.py +++ b/gn3/api/rqtl2.py @@ -57,6 +57,7 @@ def stream(identifier="output"): with open(output_file, encoding="utf-8") as file_handler: # read to the last position default to 0 file_handler.seek(seek_position) - return jsonify({"data": file_handler.readlines(), - "run_id": identifier, - "pointer": file_handler.tell()}) + results = {"data": file_handler.readlines(), + "run_id": identifier, + "pointer": file_handler.tell()} + return jsonify(results) |
