Skip to content

Commit

Permalink
Merge pull request #339 from napse-invest/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
tomjeannesson authored Mar 14, 2024
2 parents 8d58c01 + c5391d1 commit e55e026
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_napse/api/fleets/views/fleet_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def create(self, request: Request) -> None:
fleet = serializer.save()
space = serializer.space
fleet.invest(space, 0, "USDT")
fleet.running = True
fleet.save()
return Response(serializer.data, status=status.HTTP_201_CREATED)

def delete(self, request: Request, pk: str | int | UUID | None = None) -> None: # noqa: ARG002
Expand Down
5 changes: 5 additions & 0 deletions django_napse/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,8 @@ def NAPSE_MASTER_KEY(self) -> str: # noqa: D102
},
**settings.LOGGING.get("loggers", {}),
}
settings.LOGGING["root"] = {
"handlers": ["console"],
"level": "INFO",
**settings.LOGGING.get("root", {}),
}

0 comments on commit e55e026

Please sign in to comment.