SatisfactoryPlusCalculator/factorygame/data/provider.py

17 lines
354 B
Python
Raw Normal View History

2024-01-29 17:37:30 +00:00
import abc
from sqlalchemy.orm import Session
from .models import Resource
class RecipeProvider(abc.ABC):
@abc.abstractmethod
def search_for_resource(self, session: Session, search: str) -> tuple[Resource, bool]:
pass
@abc.abstractmethod
def update_resource_recipes(self, session: Session, resource: Resource):
pass