Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few fixes to make it work just by reading README.md #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql_app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_emails_enabled(cls, v: bool, values: Dict[str, Any]) -> bool:

class Config:
case_sensitive = True
env_file = '../.env'
env_file = '.env'
env_file_encoding = 'utf-8'

@lru_cache()
Expand Down
3 changes: 2 additions & 1 deletion sql_app/crud/crud_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ def create_user_in_db(
hashed_password=get_password_hash(user_in.password),
is_active=superuser,
is_superuser=superuser,
read=user_in.read
read=user_in.read,
comment=user_in.comment
)
print("create_user_in_db > db_user : ", db_user)
self.create(db=db, obj_in=db_user)
Expand Down