mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-10 01:17:42 +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:
|
for whirl in whirlpool:
|
||||||
hops.remove(whirl)
|
hops.remove(whirl)
|
||||||
|
|
||||||
print(whirlpool)
|
|
||||||
print(hops)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# get the misc addition times
|
# get the misc addition times
|
||||||
c.execute('SELECT Zugabedauer FROM WeitereZutatenGaben WHERE Zeitpunkt = 1 AND SudID = ?', (Recipe_ID,))
|
c.execute('SELECT Zugabedauer FROM WeitereZutatenGaben WHERE Zeitpunkt = 1 AND SudID = ?', (Recipe_ID,))
|
||||||
miscs = c.fetchall()
|
miscs = c.fetchall()
|
||||||
|
@ -318,6 +313,9 @@ class UploadController:
|
||||||
|
|
||||||
await self.create_step(step_string)
|
await self.create_step(step_string)
|
||||||
|
|
||||||
|
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
|
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)
|
self.cbpi.notify('KBH Recipe created', name, NotificationType.INFO)
|
||||||
|
|
Loading…
Reference in a new issue