Queer European MD passionate about IT
Browse Source

Prefix is no longer needed

Davte 4 years ago
parent
commit
669c4dfe16
1 changed files with 2 additions and 2 deletions
  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: