mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
docs cache key
This commit is contained in:
@@ -85,6 +85,7 @@ def take_svg_screenshot(
|
|||||||
for path in file_paths:
|
for path in file_paths:
|
||||||
with open(path, "rb") as source_file:
|
with open(path, "rb") as source_file:
|
||||||
hash.update(source_file.read())
|
hash.update(source_file.read())
|
||||||
|
hash.update(f"{press}-{title}-{terminal_size}".encode("utf-8"))
|
||||||
cache_key = f"{hash.hexdigest()}.svg"
|
cache_key = f"{hash.hexdigest()}.svg"
|
||||||
return cache_key
|
return cache_key
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user