mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-23 23:48:16 +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)
|
||||
for entry in j:
|
||||
result.append(entry['MESSAGE'])
|
||||
try:
|
||||
with open(fullname, 'w') as f:
|
||||
for line in result:
|
||||
f.write(f"{line}\n")
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
try:
|
||||
with open(fullname, 'w') as f:
|
||||
for line in result:
|
||||
f.write(f"{line}\n")
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
|
||||
plugins = await self.plugins_list()
|
||||
with open(fullpluginname, 'w') as f:
|
||||
|
|
Loading…
Reference in a new issue