diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-07-06 15:45:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-06 15:45:29 -0400 |
commit | cbf11ba08205a1fcb9b0d421211cd57df30bbbbe (patch) | |
tree | 3f85968ba50b26e9d4798e978cfb29670866a84f /gitsrht/blueprints/api.py | |
parent | becae56162a9474e11a4002b561f23649f1a01d4 (diff) |
Scope annotations to a repo ID
Diffstat (limited to 'gitsrht/blueprints/api.py')
-rw-r--r-- | gitsrht/blueprints/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitsrht/blueprints/api.py b/gitsrht/blueprints/api.py index 0bc8fc9..e40ad4f 100644 --- a/gitsrht/blueprints/api.py +++ b/gitsrht/blueprints/api.py @@ -157,8 +157,8 @@ def repo_annotate_PUT(username, reponame): validate_annotation(valid, anno) if not valid.ok: return valid.response - # TODO: more validation on annotation structure - redis.set(f"git.sr.ht:git:annotations:{oid}", json.dumps(annotations)) + redis.set(f"git.sr.ht:git:annotations:{repo.id}:{oid}", + json.dumps(annotations)) # Invalidate rendered markup cache redis.delete(f"git.sr.ht:git:highlight:{oid}") |