Browse Source

[pig] Avoid 404 on fetching the list of tables

Romain Rigaux 9 năm trước cách đây
mục cha
commit
fae83f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/pig/src/pig/views.py

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

@@ -43,7 +43,7 @@ LOG = logging.getLogger(__name__)
 def app(request):
   autocomplete_base_url = ''
   try:
-    autocomplete_base_url = reverse('beeswax:api_autocomplete_databases', kwargs={})
+    autocomplete_base_url = reverse('beeswax:api_autocomplete_databases', kwargs={}) + '/'
   except:
     LOG.exception('failed to find autocomplete base url')