Always return lowercase file names from SharedContentMap.add_content()

This commit is contained in:
Campbell 2024-07-27 20:47:22 -04:00
parent a5ce7e9cd1
commit 930e09828e
Signed by: NinjaCheetah
GPG Key ID: B547958AF96ED344

View File

@ -588,7 +588,7 @@ class SharedContentMap:
# for not just storing these as integers like you did EVERYWHERE else.
try:
maximum_index = int(self.shared_records[-1].shared_id, 16)
new_index = f"{maximum_index + 1:08X}"
new_index = f"{maximum_index + 1:08X}".lower()
except IndexError:
new_index = f"{0:08X}"
self.shared_records.append(_SharedContentRecord(new_index, content_hash_converted))