Explorar o código

[metastore] Index redirects to the default database

Enrico Berti %!s(int64=10) %!d(string=hai) anos
pai
achega
5323d89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/metastore/src/metastore/views.py

+ 1 - 1
apps/metastore/src/metastore/views.py

@@ -59,7 +59,7 @@ def check_has_write_access_permission(view_func):
 
 
 def index(request):
-  return redirect(reverse('metastore:show_tables'))
+  return redirect(reverse('metastore:show_tables', kwargs={'database': request.COOKIES.get('hueBeeswaxLastDatabase', 'default')}))
 
 
 """