diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2022-09-07 18:03:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2022-09-07 18:03:57 +0000 |
commit | 97a32dd51c6ac6bcbb5b5f129b635afbeea40270 (patch) | |
tree | d29fc9ab0dd4fa7d88cfbcd90dc4d7d2d4b37991 /src/booking/stats.py | |
parent | 1552253144f6d447ad28540a87387f42ce194d12 (diff) | |
parent | 627171dc89fbfb07863c8df6b23cf0e10709139a (diff) |
Merge changes I6f602266,I6b403a62,Id9d6df5c
* changes:
rebuilt host import admin util
added util to get booking data in a range of years
Fix for booking statistics
Diffstat (limited to 'src/booking/stats.py')
-rw-r--r-- | src/booking/stats.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/booking/stats.py b/src/booking/stats.py index 70f91fa..5a59d32 100644 --- a/src/booking/stats.py +++ b/src/booking/stats.py @@ -94,6 +94,7 @@ class StatisticsManager(object): proj_count = sorted(Counter(projects).items(), key=lambda x: x[1]) project_keys = [proj[0] for proj in proj_count[-5:]] + project_keys = ['None' if x is None else x for x in project_keys] project_counts = [proj[1] for proj in proj_count[-5:]] resources = {key: [x, value] for key, value in profiles.items()} |