Skip to content

Commit

Permalink
improve create_app usage
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 30, 2024
1 parent 8caa957 commit b58e021
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion datamodel/app/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ def create_views(srid: int, pg_service: str):
)
args = parser.parse_args()

create_views(args.srid, args.pg_service)
pg_service = args.pg_service
if not pg_service:
pg_service = os.getenv("PGSERVICE")
assert pg_service

create_views(args.srid, pg_service)

0 comments on commit b58e021

Please sign in to comment.