diff --git a/server/szurubooru/func/favorites.py b/server/szurubooru/func/favorites.py index e95582f..00952de 100644 --- a/server/szurubooru/func/favorites.py +++ b/server/szurubooru/func/favorites.py @@ -1,6 +1,5 @@ import datetime from szurubooru import db, errors -from szurubooru.func import scores class InvalidFavoriteTargetError(errors.ValidationError): @@ -36,6 +35,7 @@ def unset_favorite(entity, user): def set_favorite(entity, user): + from szurubooru.func import scores assert entity assert user try: diff --git a/server/szurubooru/func/scores.py b/server/szurubooru/func/scores.py index ed9c84d..a42961f 100644 --- a/server/szurubooru/func/scores.py +++ b/server/szurubooru/func/scores.py @@ -1,6 +1,5 @@ import datetime from szurubooru import db, errors -from szurubooru.func import favorites class InvalidScoreTargetError(errors.ValidationError): @@ -47,6 +46,7 @@ def get_score(entity, user): def set_score(entity, user, score): + from szurubooru.func import favorites assert entity assert user if not score: