Skip to content

Commit c06bc6a

Browse files
committed
fix: Properly store the lib name
1 parent e0447c6 commit c06bc6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sanejs/sanejs.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def compute_hashes(self, force_recache: bool=False, force_rehash: bool=False) ->
5151
# libname is the path to the library, it contains a directory for each version
5252
if not libname.is_dir():
5353
continue
54-
if counter % 100:
54+
if counter % 100 == 0:
5555
self.logger.info(f'Loaded {counter} librairies...')
5656
counter += 1
5757
got_new_versions = False
@@ -95,6 +95,7 @@ def compute_hashes(self, force_recache: bool=False, force_rehash: bool=False) ->
9595
p.sadd(f_hash['newline'], f'{libname.name}|{version.name}|{filepath}')
9696
p.sadd(f_hash['no_newline'], f'{libname.name}|{version.name}|{filepath}')
9797
p.hset(f'{libname.name}|{version.name}', filepath, f_hash['default'])
98+
p.sadd(libname.name, version.name)
9899
p.execute()
99100
else:
100101
# We need to compute the hashes

0 commit comments

Comments
 (0)