Skip to content

Commit

Permalink
Add .pyc files to .gitignore and create channel creation endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
crushr3sist committed Apr 15, 2024
1 parent 167b98c commit c35af34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*.pyc

*$py.class

# C extensions
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ async def create_channel(
table_name = f"channels_{room_id}"

try:

table = Table(table_name, metadata_obj, autoload_with=engine)
stmt = insert(table).values(
channel_name=channel_name,
channel_description=channel_description,
author=user.id,
id=uuid.uuid4(),
)

db.execute(stmt)
db.commit()
db.refresh(stmt)
Expand Down

0 comments on commit c35af34

Please sign in to comment.