Skip to content

fixed generate_api_token#6

Open
mhdalik wants to merge 3 commits intoDocketGoAI:mainfrom
mhdalik:api-token
Open

fixed generate_api_token#6
mhdalik wants to merge 3 commits intoDocketGoAI:mainfrom
mhdalik:api-token

Conversation

@mhdalik
Copy link
Contributor

@mhdalik mhdalik commented Feb 13, 2023

No description provided.

Copy link
Contributor

@docket-go docket-go left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use SQLAlchemy for SQLite3, Never call the commands directly, It will lead to SQLInjection

@docket-go
Copy link
Contributor

Base.metadata.create_all(engine)

This is breaking in my system @edwinsjohn @Eldhosee Could you check ?

Copy link
Contributor

@edwinsjohn edwinsjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@docket-go I tried running it, No problem with Base.metadata.create_all(engine). But when i tried calling generate_token function there were some problems with session.query(self). Can be solved by adding a nested class / By taking both functions out of ApiToken class and putting them into another class .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants