mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 01:48:54 +00:00
Remove commented out code.
This commit is contained in:
parent
b647bc9b41
commit
c02afbb4f9
@ -238,18 +238,6 @@ class QueryResultAPI(BaseResource):
|
||||
|
||||
|
||||
class CsvQueryResultsAPI(BaseResource):
|
||||
# TODO: bring this functionality:
|
||||
#def get_current_user(self):
|
||||
# user = super(CsvQueryResultsHandler, self).get_current_user()
|
||||
# if not user:
|
||||
# api_key = self.get_argument("api_key", None)
|
||||
# query = data.models.Query.objects.get(pk=self.path_args[0])
|
||||
#
|
||||
# if query.api_key and query.api_key == api_key:
|
||||
# user = "API-Key=%s" % api_key
|
||||
#
|
||||
# return user
|
||||
|
||||
def get(self, query_id, query_result_id=None):
|
||||
if not query_result_id:
|
||||
query = data.models.Query.objects.get(pk=query_id)
|
||||
|
Loading…
Reference in New Issue
Block a user