Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor startup issues #873

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading