Queer European MD passionate about IT
Davte 5 лет назад
Родитель
Сommit
669c4dfe16
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      dynamic/app.py

+ 2 - 2
dynamic/app.py

@@ -48,7 +48,7 @@ app = web.Application()
 # 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."""
     path = "{pr}{pa}".format(
         pr=prefix,
@@ -81,7 +81,7 @@ async def test(request):
     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):
     """Git pull at request."""
     try: