from models._base import Michael
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from models.work import Project
class Worker(Michael):
def __init__(self, current_project: Project = None, **kwargs) -> None:
super().__init__(**kwargs)
self.current_project = current_project
if self.working or self.bored:
self.start_work()
def start_work(self) -> None:
if not self.current_project:
"""
If I'm not writing some custom systems integration at work,
I'm probably tinkering with some open source software to save
myself 5-10 seconds of manual effort
"""
self.current_project = self.find_something_to_work_on()
self.current_project.do_work(self)
michael-genson / mealie Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mealie-recipes/mealie
Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
Home Page: https://nightly.mealie.io
License: GNU Affero General Public License v3.0