change(fastapi): simplify model imports across code-base

Closes: #133

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-16 19:25:25 -07:00
parent bfdc85d7d6
commit 28c4e9697b
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
12 changed files with 341 additions and 343 deletions

View file

@ -139,7 +139,7 @@ def to_qs(query: Dict[str, Any]) -> str:
def get_vote(voteinfo, request: fastapi.Request):
from aurweb.models.tu_vote import TUVote
from aurweb.models import TUVote
return voteinfo.tu_votes.filter(TUVote.User == request.user).first()