From fbcf8e1c1f956bfbae610fa16ddcb85fc9ef4262 Mon Sep 17 00:00:00 2001 From: Roni Choudhury Date: Thu, 1 Jul 2021 18:25:03 -0400 Subject: [PATCH] Add an explanatory comment --- dandiapi/api/models/version.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dandiapi/api/models/version.py b/dandiapi/api/models/version.py index 691d90e0b..18cb9879e 100644 --- a/dandiapi/api/models/version.py +++ b/dandiapi/api/models/version.py @@ -274,6 +274,8 @@ def _populate_metadata(self, version_with_assets: Version = None): 'numberOfBytes': 0, 'numberOfFiles': 0, } + # TODO: remove the `and False` and find a better way to handle the + # unconditional recomputation of the summary stats. if version_with_assets.id and False: try: summary = aggregate_assets_summary(