From 6461b91d5577e33e0576335abc1438243e3d7f98 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 5 Sep 2021 07:36:44 +0200 Subject: [PATCH] fix: [api/lookup/sha1] missing parents bug --- bin/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/server.py b/bin/server.py index 0ae0d71..e1e1c9a 100644 --- a/bin/server.py +++ b/bin/server.py @@ -172,7 +172,7 @@ class lookup(Resource): p = rdb.smembers("p:{}".format(k)) else: p = [] - p = rdb.srandmember("p:{}".format(sha1), number=10) + p = rdb.srandmember("p:{}".format(k), number=10) for parent in p: parent_details = rdb.hgetall("h:{}".format(parent)) parents.append(parent_details)