KBH import with and without whirlpool additions

This commit is contained in:
prash3r 2022-09-14 15:08:59 +02:00
parent 76b11a7247
commit cfc876f2f4

View file

@ -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)