Przeglądaj źródła

[metastore] Index redirects to the default database

Enrico Berti 10 lat temu
rodzic
commit
5323d89
1 zmienionych plików z 1 dodań i 1 usunięć
  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')}))
 
 
 """