Queer European MD passionate about IT
ソースを参照

Merge branch 'master' of Davte/micheles-website into master

Davte 5 年 前
コミット
80e5e444bb
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: