Skip to content

Commit

Permalink
new view init hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Nov 29, 2023
1 parent 5a8ca26 commit 409b303
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/view/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
B_OPEN = "{"
B_CLOSE = "}"

_GIT_EMAIL = re.compile(r' *email = "(.+)"')
_GIT_EMAIL = re.compile(r'.*email = "(.+)"')


def _get_email():
Expand Down Expand Up @@ -303,7 +303,7 @@ def init(
if load in {"filesystem", "simple"}:
f.write(
f"# view.py {__version__}"
"""import view
"""\nimport view
app = view.new_app()
app.run()
Expand All @@ -313,7 +313,7 @@ def init(
if load == "manual":
f.write(
f"# view.py {__version__}"
"""import view
"""\nimport view
app = view.new_app()
Expand Down Expand Up @@ -348,9 +348,9 @@ async def index():
f"""from view.routing import get
@get({pathstr})
async def index():
return 'Hello, view.py!'
@get({pathstr})
async def index():
return 'Hello, view.py!'
"""
)

Expand Down

0 comments on commit 409b303

Please sign in to comment.