mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
fixas 'last boot log' was always overwritten
This commit is contained in:
parent
00ac853488
commit
1f56fa8fe1
1 changed files with 6 additions and 6 deletions
|
@ -157,12 +157,12 @@ class SystemController:
|
||||||
j.seek_realtime(since)
|
j.seek_realtime(since)
|
||||||
for entry in j:
|
for entry in j:
|
||||||
result.append(entry['MESSAGE'])
|
result.append(entry['MESSAGE'])
|
||||||
try:
|
try:
|
||||||
with open(fullname, 'w') as f:
|
with open(fullname, 'w') as f:
|
||||||
for line in result:
|
for line in result:
|
||||||
f.write(f"{line}\n")
|
f.write(f"{line}\n")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(e)
|
logging.error(e)
|
||||||
|
|
||||||
plugins = await self.plugins_list()
|
plugins = await self.plugins_list()
|
||||||
with open(fullpluginname, 'w') as f:
|
with open(fullpluginname, 'w') as f:
|
||||||
|
|
Loading…
Reference in a new issue