From de70b21e5580178a692523a0d851bfb2685f3271 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 5 Nov 2022 23:22:21 +0000 Subject: [PATCH] Fix PackageDailyStats field names --- app/models/packages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/packages.py b/app/models/packages.py index eee5b38c..536b6f5c 100644 --- a/app/models/packages.py +++ b/app/models/packages.py @@ -1230,10 +1230,10 @@ class PackageDailyStats(db.Model): field_reason = None if reason == "new": field_reason = "reason_new" - elif reason == "dep": + elif reason == "dependency": field_reason = "reason_dependency" elif reason == "update": - field_reason = "./reason_update" + field_reason = "reason_update" if field_reason: to_update[field_reason] = getattr(PackageDailyStats, field_reason) + 1