mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(fastapi): simplify model imports across code-base
Closes: #133 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
bfdc85d7d6
commit
28c4e9697b
12 changed files with 341 additions and 343 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue