Skip to content

Commit

Permalink
Merge pull request #7 from IE-BCSAI-2024/main
Browse files Browse the repository at this point in the history
local db reference in config
  • Loading branch information
julioas09 committed Aug 29, 2024
2 parents 3767184 + 02a2428 commit 976823e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
__pycache__/
.env
.vscode
.db/
.db/
instance/
3 changes: 1 addition & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ class Config(object):
SQLALCHEMY_TRACK_MODIFICATIONS = False

class LocalConfig(Config):
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir,'.db', 'local.db')
SQLALCHEMY_DATABASE_URI = 'sqlite:///local.db'
DEBUG = True

class GithubCIConfig(Config):
Expand Down

0 comments on commit 976823e

Please sign in to comment.