models/alarm: fix csv row

This commit is contained in:
Iain Learmonth 2022-04-22 14:32:31 +01:00
parent b40e9b6eed
commit fcad77a839

View file

@ -38,7 +38,7 @@ class Alarm(db.Model):
def csv_row(self):
return [
self[x] for x in self.csv_header()
getattr(self, x) for x in self.csv_header()
]
def update_state(self, state: AlarmState, text: str):