fix type issues and remove logging

This commit is contained in:
Lucas Jensen
2025-01-15 18:07:43 -08:00
parent a961118f77
commit 842709884e
3 changed files with 2 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import Modal from "react-bootstrap/Modal"; import Modal from "react-bootstrap/Modal";
import { MusicianProps } from "../Musicians/Musician/Musician"; import { MusicianObj } from "../Musicians/Musician/Musician";
import { GroupObj } from "../Group/Group"; import { GroupObj } from "../Group/Group";
import { EventSeriesObj } from "../Series/SeriesList"; import { EventSeriesObj } from "../Series/SeriesList";
@@ -8,7 +8,7 @@ interface EditModalProps {
show: boolean; show: boolean;
onHide: () => void; onHide: () => void;
form: JSX.Element; form: JSX.Element;
entity?: MusicianProps | GroupObj | EventSeriesObj; entity?: MusicianObj | GroupObj | EventSeriesObj;
error?: string; error?: string;
livestream_id?: string; livestream_id?: string;
} }

View File

@@ -21,11 +21,6 @@ def connect_db() -> mysql.connector.MySQLConnection:
password = os.getenv("DB_PASSWORD") password = os.getenv("DB_PASSWORD")
database = os.getenv("DB_DATABASE") database = os.getenv("DB_DATABASE")
print(host)
print(user)
print(password)
print(database)
if None in [host, user, password, database]: if None in [host, user, password, database]:
raise DBException("Missing database credentials") raise DBException("Missing database credentials")

View File

@@ -24,5 +24,4 @@ async def update_group(
) -> Group: ) -> Group:
"""Updates the group bio, but requires the entire group object to be sent in the request body. """Updates the group bio, but requires the entire group object to be sent in the request body.
Requires authentication.""" Requires authentication."""
ic(group)
return await controller.update_group(group, token) return await controller.update_group(group, token)