Skip to content

Commit

Permalink
Fix minor startup issues (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicozanf authored Jun 8, 2024
1 parent 05bf531 commit be31a1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/tagged_posts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)

def parse_post_content(content, post_item_id):
for word in re.compile("\#\w+").findall(content):
for word in re.compile(r"\#\w+").findall(content):
db.tag_item.insert(name=word[1:], post_item_id=post_item_id)


6 changes: 4 additions & 2 deletions py4web/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2160,8 +2160,10 @@ def run(**kwargs):
"""Run the applications on apps_folder"""
install_args(kwargs)

from py4web import __version__ # pylint: disable=import-outside-toplevel

click.secho(ART, fg="blue")
click.echo(f"Py4web: {version} on Python {sys.version}\n\n")
click.echo(f"Py4web: {__version__} on Python {sys.version}\n\n")

# Start
Reloader.import_apps()
Expand All @@ -2172,7 +2174,7 @@ def run(**kwargs):
kwargs["password_file"]
):
click.echo(
f'You have not set a dashboard password. Run "{PY4WEB_CMD} set_password" to do so.'
f'\nYou have not set a dashboard password. Run "{PY4WEB_CMD} set_password" to do so.'
)
elif "_dashboard" in Reloader.ROUTES and (
not kwargs["host"].startswith("unix:/")
Expand Down

0 comments on commit be31a1a

Please sign in to comment.