add Makefile

update cli
This commit is contained in:
long2ice
2020-05-22 21:28:32 +08:00
parent ae4eb02145
commit afabc6cd27
26 changed files with 782 additions and 384 deletions

View File

@@ -14,5 +14,5 @@ async def get_object_or_404(model: Generic[MODEL], **kwargs):
"""
obj = await model.filter(**kwargs).first() # type:model
if not obj:
raise HTTPException(HTTP_404_NOT_FOUND, 'Not Found')
raise HTTPException(HTTP_404_NOT_FOUND, "Not Found")
return obj