Queer European MD passionate about IT
Ver Fonte

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

Davte há 5 anos atrás
pai
commit
80e5e444bb
1 ficheiros alterados com 2 adições e 2 exclusões
  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: