|
|
@@ -128,6 +128,19 @@ class RemoteRun(db.Model):
|
|
|
last_archive_name = db.Column(db.Text)
|
|
|
last_size_bytes = db.Column(db.Integer)
|
|
|
|
|
|
+ # Alias pour compatibilité avec le template dashboard_network
|
|
|
+ @property
|
|
|
+ def name(self):
|
|
|
+ return self.job_name
|
|
|
+
|
|
|
+ @property
|
|
|
+ def type(self):
|
|
|
+ return self.job_type
|
|
|
+
|
|
|
+ @property
|
|
|
+ def size_human(self):
|
|
|
+ return _size_human(self.last_size_bytes)
|
|
|
+
|
|
|
@property
|
|
|
def last_size_human(self):
|
|
|
return _size_human(self.last_size_bytes)
|