mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 13:34:55 +01:00
KBH import with and without whirlpool additions
This commit is contained in:
parent
76b11a7247
commit
cfc876f2f4
1 changed files with 5 additions and 7 deletions
|
@ -202,11 +202,6 @@ class UploadController:
|
|||
for whirl in whirlpool:
|
||||
hops.remove(whirl)
|
||||
|
||||
print(whirlpool)
|
||||
print(hops)
|
||||
|
||||
|
||||
|
||||
# get the misc addition times
|
||||
c.execute('SELECT Zugabedauer FROM WeitereZutatenGaben WHERE Zeitpunkt = 1 AND SudID = ?', (Recipe_ID,))
|
||||
miscs = c.fetchall()
|
||||
|
@ -318,8 +313,11 @@ class UploadController:
|
|||
|
||||
await self.create_step(step_string)
|
||||
|
||||
await self.create_Whirlpool_Cooldown(str(abs(whirlpool[0][0]))) # from kbh this value comes as negative but must be positive
|
||||
|
||||
if not whirlpool:
|
||||
await self.create_Whirlpool_Cooldown()
|
||||
else :
|
||||
await self.create_Whirlpool_Cooldown(str(abs(whirlpool[0][0]))) # from kbh this value comes as negative but must be positive
|
||||
|
||||
self.cbpi.notify('KBH Recipe created', name, NotificationType.INFO)
|
||||
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue