mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix PackageDailyStats field names
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user