Skip to content

Commit

Permalink
fix(lint): fix linting with black
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed Mar 6, 2024
1 parent 603da6b commit 171f875
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/apps/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def create_database(database_name=None):
dbname="postgres",
user="postgres",
host=os.environ.get("POSTGRES_SERVICE_HOST", "localhost"),
password=from_secret() # os.environ.get("POSTGRES_PASSWORD", "postgres")
password=from_secret(), # os.environ.get("POSTGRES_PASSWORD", "postgres")
)

# https://www.psycopg.org/docs/connection.html#connection.set_isolation_level
Expand Down
9 changes: 4 additions & 5 deletions backend/apps/core/management/commands/create_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@


class Command(BaseCommand):

def add_arguments(self, parser):
parser.add_argument(
'--database_name',
action='store',
dest='database_name',
"--database_name",
action="store",
dest="database_name",
default=None,
help='Optional database name argument',
help="Optional database name argument",
)

def handle(self, *args, **options):
Expand Down

0 comments on commit 171f875

Please sign in to comment.