analyze performance upgrade
This commit is contained in:
@@ -128,6 +128,8 @@ class File(models.Model):
|
||||
filename = models.CharField(max_length=255)
|
||||
ip_address = models.GenericIPAddressField()
|
||||
status = models.CharField(max_length=50, default="pending")
|
||||
# Last analysis failure, shown in the UI so nobody has to dig through logs first.
|
||||
error_message = models.TextField(null=True, blank=True)
|
||||
upload_time = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def to_json(self):
|
||||
@@ -137,6 +139,7 @@ class File(models.Model):
|
||||
"ip_address": self.ip_address,
|
||||
"firmware_version": self.firmware.version,
|
||||
"status": self.status,
|
||||
"error_message": self.error_message,
|
||||
"upload_time": self.upload_time.isoformat(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user