feat(chalice): changed create projects method
This commit is contained in:
parent
b9fd76dead
commit
ac4fb637f8
2 changed files with 6 additions and 9 deletions
|
|
@ -148,14 +148,11 @@ MAX_COLUMN_OFFSET = 60
|
|||
def fetch_missed_contexts(frames):
|
||||
source_cache = {}
|
||||
for i in range(len(frames)):
|
||||
try:
|
||||
if len(frames[i]["context"]) > 0:
|
||||
continue
|
||||
except Exception:
|
||||
print(">>>>>>>> fetch_missed_contexts exception:")
|
||||
print(frames)
|
||||
print("------------------")
|
||||
raise
|
||||
print(">>>>>>>> fetch_missed_contexts exception:")
|
||||
print(frames[i])
|
||||
print("------------------")
|
||||
if len(frames[i]["context"]) > 0:
|
||||
continue
|
||||
file_abs_path = frames[i]["frame"]["absPath"]
|
||||
if file_abs_path in source_cache:
|
||||
file = source_cache[file_abs_path]
|
||||
|
|
|
|||
|
|
@ -771,7 +771,7 @@ def signup_handler(data: schemas.UserSignupSchema = Body(...)):
|
|||
return signup.create_step1(data)
|
||||
|
||||
|
||||
@app.put('/projects', tags=['projects'])
|
||||
@app.post('/projects', tags=['projects'])
|
||||
def create_project(data: schemas.CreateProjectSchema = Body(...),
|
||||
context: schemas.CurrentContext = Depends(OR_context)):
|
||||
return projects.create(tenant_id=context.tenant_id, user_id=context.user_id, data=data)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue