Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,21 +459,6 @@ async def get_stats(authorization: str = '', db: Session = Depends(get_db)):
score = 0
stars = []
star_id_counter = 0

# Configure logger
logger = logging.getLogger("sky_squad")
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter(json.dumps({
"timestamp": "%(asctime)s",
"level": "%(levelname)s",
"message": "%(message)s",
"module": "%(module)s",
"function": "%(funcName)s"
})))
logger.addHandler(handler)


def generate_star():
"""Generate a new star with random position and value"""
global stars, star_id_counter
Expand Down
Loading