Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSquires committed May 30, 2024
1 parent 55c1c03 commit 3aa51fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/lib/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4136,7 +4136,7 @@ async def iterLayerAddPerms(self):
@s_cache.memoize()
def tagPartsByAbrv(abrv):
name = self.tagabrv.abrvToName(abrv)
return name.split('.')
return tuple(name.split('.'))

for lkey, buid in self.layrslab.scanByFull(db=self.bytag):
abrv = lkey[:8]
Expand All @@ -4152,7 +4152,7 @@ def tagPartsByAbrv(abrv):

if len(abrvs) == 1:
# IF there's only one tag abrv, then it's a leaf by default
key = tagPargsByAbrv(abrv)
key = tagPartsByAbrv(abrv)
if key not in tagperms:
yield ('node', 'tag', 'add', *key)
await tagperms.add(key)
Expand Down

0 comments on commit 3aa51fc

Please sign in to comment.