Explorar el Código

why are we re-hitting the database here?

Getty Ritter hace 4 años
padre
commit
acbd644638
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lc/web.py

+ 1 - 1
lc/web.py

@@ -50,7 +50,7 @@ class Endpoint:
         if not self.user or name != self.user.name:
             raise e.BadPermissions()
 
-        return m.User.by_slug(name)
+        return self.user
 
     def route(self, *args, **kwargs):
         try: