|
@@ -35,7 +35,7 @@ from ..widgets import (
|
|
|
NoTabCheckBox,
|
|
|
FlowBarGraphWithVScale,
|
|
|
)
|
|
|
-from ..db_utils import QueryManager
|
|
|
+from ..data.QueryManager import QueryManager
|
|
|
from . import ActivityManager, show_or_exit
|
|
|
from .Rating import Rating
|
|
|
import yaml
|
|
@@ -270,7 +270,7 @@ class RecipeEditor(FocusWidget):
|
|
|
lambda x: None not in map(lambda x: x or None, x), [
|
|
|
list(map(lambda x: x.get_edit_text(), x)) for x in self.ingredients
|
|
|
])))
|
|
|
- if serves:
|
|
|
+ if self.feeds:
|
|
|
n, d = self.feeds.as_integer_ratio()
|
|
|
yml['feeds'] = float(self.feeds) if d != 1 else n
|
|
|
else:
|