Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
puffotter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
namibsun
python
puffotter
Commits
a3957f68
Commit
a3957f68
authored
4 years ago
by
Hermann Krumrey
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Fix postgres variable issue See merge request namibsun/python/puffotter!27
parents
b6520b62
bf941af7
No related branches found
Branches containing commit
Tags
0.14.1
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
puffotter/flask/Config.py
+6
-8
6 additions, 8 deletions
puffotter/flask/Config.py
version
+1
-1
1 addition, 1 deletion
version
with
9 additions
and
9 deletions
CHANGELOG
+
2
−
0
View file @
a3957f68
V 0.14.1:
- Fixed issue with postgres variables
V 0.14.0:
- Made __json__ method for ModelMixins automated
V 0.13.0:
...
...
This diff is collapsed.
Click to expand it.
puffotter/flask/Config.py
+
6
−
8
View file @
a3957f68
...
...
@@ -155,18 +155,16 @@ class Config:
optional
.
append
(
"
SQLITE_PATH
"
)
elif
db_mode
is
not
None
:
db_mode
=
db_mode
.
upper
()
db_keyword
=
"
DATABASE
"
if
db_mode
==
"
POSTGRESQL
"
:
db_mode
=
"
POSTGRES
"
db_keyword
=
"
DB
"
required
.
append
(
f
"
{
db_mode
}
_HOST
"
)
required
.
append
(
f
"
{
db_mode
}
_PORT
"
)
required
.
append
(
f
"
{
db_mode
}
_USER
"
)
required
.
append
(
f
"
{
db_mode
}
_PASSWORD
"
)
required
.
append
(
f
"
{
db_mode
}
_DATABASE
"
)
if
db_mode
==
"
POSTGRESQL
"
:
required
+=
[
"
POSTGRES_USER
"
,
"
POSTGRES_PASSWORD
"
,
"
POSTGRES_DB
"
]
required
.
append
(
f
"
{
db_mode
}
_
{
db_keyword
}
"
)
return
{
"
required
"
:
required
,
...
...
This diff is collapsed.
Click to expand it.
version
+
1
−
1
View file @
a3957f68
0.14.0
\ No newline at end of file
0.14.1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment