Skip to content

Commit

Permalink
[IMP] argocd.application.stat default date value
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo committed Aug 27, 2024
1 parent 4c5f261 commit 8f7783c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion argocd_deployer/models/application_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ class ApplicationStat(models.Model):
type_id = fields.Many2one(
comodel_name="argocd.application.stat.type", required=True
)
date = fields.Datetime(help="The date when the measurement was done", required=True)
date = fields.Datetime(
default=fields.Datetime.now,
help="The date when the measurement was done",
required=True,
)
message = fields.Char()
value = fields.Float()

Expand Down

0 comments on commit 8f7783c

Please sign in to comment.