From 1e6e80adef5dfe46ec7808ff22f04d3950ec46fd Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 11 May 2024 12:23:58 +0200 Subject: [PATCH] fix typo --- apps/vectordb_sync/vectordb_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/vectordb_sync/vectordb_sync.py b/apps/vectordb_sync/vectordb_sync.py index 3cb4386..08f1524 100644 --- a/apps/vectordb_sync/vectordb_sync.py +++ b/apps/vectordb_sync/vectordb_sync.py @@ -86,8 +86,8 @@ def empty_redis(): redis.delete('content_queue') return jsonify({"message": "Redis queue cleared"}), 200 -@app.route('/redis_lenght', methods=['POST']) -def redis_lenght(): +@app.route('/redis_length', methods=['POST']) +def redis_length(): len = redis.llen('content_queue') return jsonify({"message": len}), 200