mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22: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
|
field_reason = None
|
||||||
if reason == "new":
|
if reason == "new":
|
||||||
field_reason = "reason_new"
|
field_reason = "reason_new"
|
||||||
elif reason == "dep":
|
elif reason == "dependency":
|
||||||
field_reason = "reason_dependency"
|
field_reason = "reason_dependency"
|
||||||
elif reason == "update":
|
elif reason == "update":
|
||||||
field_reason = "./reason_update"
|
field_reason = "reason_update"
|
||||||
|
|
||||||
if field_reason:
|
if field_reason:
|
||||||
to_update[field_reason] = getattr(PackageDailyStats, field_reason) + 1
|
to_update[field_reason] = getattr(PackageDailyStats, field_reason) + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user