server: postpone circular dependency evaluation
Hopefully this improves importing with python 3.4
This commit is contained in:
parent
b44b2aef7e
commit
c0d484689b
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue