Spaces:
Sleeping
Sleeping
ktsn-ud commited on
Commit ·
351a26a
1
Parent(s): 240906a
Project型を扱うべきところをdict型としていた箇所の修正
Browse files
app/services/projects_service.py
CHANGED
|
@@ -37,7 +37,7 @@ class ProjectsService:
|
|
| 37 |
and self._cache_at is not None
|
| 38 |
and now - self._cache_at < self._cache_ttl
|
| 39 |
):
|
| 40 |
-
return [
|
| 41 |
|
| 42 |
# キャッシュが無効ならデータベースから取得してキャッシュを更新する
|
| 43 |
projects = [item.model_copy() for item in self._repository.list_projects()]
|
|
|
|
| 37 |
and self._cache_at is not None
|
| 38 |
and now - self._cache_at < self._cache_ttl
|
| 39 |
):
|
| 40 |
+
return [item.model_copy() for item in self._cache]
|
| 41 |
|
| 42 |
# キャッシュが無効ならデータベースから取得してキャッシュを更新する
|
| 43 |
projects = [item.model_copy() for item in self._repository.list_projects()]
|