Skip to content

Commit 5c16ffe

Browse files
authored
chore: update STORAGE_KEY to use stackit-rag-template-files (#5)
1 parent 28353d3 commit 5c16ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin-api-lib/src/admin_api_lib/impl/key_db/file_status_key_value_store.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FileStatusKeyValueStore:
2626
The key used for the file status in the JSON string.
2727
"""
2828

29-
STORAGE_KEY = "files"
29+
STORAGE_KEY = "stackit-rag-template-files"
3030
INNER_FILENAME_KEY = "filename"
3131
INNER_STATUS_KEY = "status"
3232

@@ -76,6 +76,7 @@ def upsert(self, file_name: str, file_status: Status) -> None:
7676
None
7777
"""
7878
self.remove(file_name)
79+
7980
self._redis.sadd(self.STORAGE_KEY, FileStatusKeyValueStore._to_str(file_name, file_status))
8081

8182
def remove(self, file_name: str) -> None:

0 commit comments

Comments
 (0)