SatisfactoryPlusCalculator/factorygame/data/provider.py
2024-01-29 18:37:30 +01:00

17 lines
354 B
Python

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