Fix PackageDailyStats field names

This commit is contained in:
rubenwardy 2022-11-05 23:22:21 +00:00
parent d11d638144
commit de70b21e55

@ -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