|
@@ -48,7 +48,7 @@ app = web.Application()
|
|
# davtebot = Bot.get(bot_token)
|
|
# davtebot = Bot.get(bot_token)
|
|
|
|
|
|
|
|
|
|
-def page(path='/', headers={'Content-Type': 'text/html'}, prefix='/michele'):
|
|
|
|
|
|
+def page(path='/', headers={'Content-Type': 'text/html'}, prefix=''):
|
|
"""Decorator: serve the result of such decorated function at given path."""
|
|
"""Decorator: serve the result of such decorated function at given path."""
|
|
path = "{pr}{pa}".format(
|
|
path = "{pr}{pa}".format(
|
|
pr=prefix,
|
|
pr=prefix,
|
|
@@ -81,7 +81,7 @@ async def test(request):
|
|
return str(datetime.datetime.now())
|
|
return str(datetime.datetime.now())
|
|
|
|
|
|
|
|
|
|
-@page('/pull/t/image-editor'.format(t=pull_token))
|
|
|
|
|
|
+@page('/pull/{t}/image-editor'.format(t=pull_token))
|
|
async def pull_image_editor_project(request):
|
|
async def pull_image_editor_project(request):
|
|
"""Git pull at request."""
|
|
"""Git pull at request."""
|
|
try:
|
|
try:
|