From 388ec4707883750704f6ff1257e4f73c81fc3c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 13 Feb 2022 20:52:51 +0100 Subject: [PATCH] fix imports+ --- docker-compose.yml | 2 +- mealapi/resources/mealresource.py | 4 ++-- mealapi/schemas/ingredientschema.py | 2 +- mealapi/schemas/mealschema.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 126f856..fdccd9e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,4 +18,4 @@ services: environment: DATABASE_URI: "postgresql://mealsapi:meals@db:5432/mealsdb" ports: - - "127.0.0.1:8080:8080" \ No newline at end of file + - "127.0.0.1:8080:8080" diff --git a/mealapi/resources/mealresource.py b/mealapi/resources/mealresource.py index 16211bf..c5569ac 100644 --- a/mealapi/resources/mealresource.py +++ b/mealapi/resources/mealresource.py @@ -3,8 +3,8 @@ from flask_restful import Resource from flask import request, current_app, abort from marshmallow import ValidationError -from ..model import db, Meal -from ..schemas import MealSchema +from model import db, Meal +from schemas import MealSchema class MealBaseResource(Resource): diff --git a/mealapi/schemas/ingredientschema.py b/mealapi/schemas/ingredientschema.py index c4f05d4..f9a65f3 100644 --- a/mealapi/schemas/ingredientschema.py +++ b/mealapi/schemas/ingredientschema.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 from .marshm import ma -from ..model import Ingredient +from model import Ingredient class IngredientSchema(ma.ModelSchema): diff --git a/mealapi/schemas/mealschema.py b/mealapi/schemas/mealschema.py index 2fa19bc..89640e7 100644 --- a/mealapi/schemas/mealschema.py +++ b/mealapi/schemas/mealschema.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 from .marshm import ma -from ..model import Meal +from model import Meal from .ingredientschema import IngredientSchema