Skip to content

Commit

Permalink
chore: make repo_url optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rajesh-jonnalagadda committed Nov 5, 2024
1 parent bbf4b88 commit e475933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import json
from datetime import datetime
from typing import Optional
from fasthtml.common import *
from dotenv import load_dotenv
from supabase_client import supabase
Expand Down Expand Up @@ -164,7 +165,7 @@ async def generateDevContainer(repo_url:str, regenerate=False):


@rt("/", methods=["get"])
async def get(repo_url: str):
async def get(repo_url: Optional[str]=None):
if not repo_url:
return home()
try:
Expand Down

0 comments on commit e475933

Please sign in to comment.