Skip to content

Commit

Permalink
updating certify and cryptography packages
Browse files Browse the repository at this point in the history
  • Loading branch information
paraskuk committed Feb 10, 2024
1 parent 142ed27 commit e8d42c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ async def authenticated(request: Request):


@app.post("/save-to-github/{username}/{repository}")
async def save_to_github(repository: str, request: Request, file: GitHubFile):
async def save_to_github(repository: str, username:str, request: Request, file: GitHubFile):
log.info("Starting save to github route")

#potentially remove the repository parameter and add file.repository
log.info(f"repo value is {repository} username value is {username}")
if 'auth_token' not in request.state.session:
log.info("auth token not in session, raising exception")
raise HTTPException(status_code=401, detail="Not authenticated with GitHub")
Expand Down
2 changes: 1 addition & 1 deletion models/query_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GitHubFile(BaseModel):
content: str = Field(..., description="Content of the file")
filename: str = Field(..., description="Filename including extension")
repository: str = Field(default="test-repo-for-app", description="Repository name for github")
username: str = Field(..., description="Username of the repository owner in github")
username: str = Field(default=None, description="Username of the repository owner in github")
message: str
committer: dict

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ async-timeout==4.0.2
attrs==23.1.0
Authlib==1.3.0
CacheControl==0.13.1
certifi==2022.12.7
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.1.0
click==8.1.3
colorama==0.4.6
coverage==7.2.7
cryptography==41.0.7
cryptography==42.0.2
cyclonedx-python-lib==4.0.1
dataclasses-json==0.5.9
defusedxml==0.7.1
Expand Down

0 comments on commit e8d42c9

Please sign in to comment.