We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f415e28 commit c80ed1fCopy full SHA for c80ed1f
batchspawner/api.py
@@ -6,7 +6,12 @@ class BatchSpawnerAPIHandler(APIHandler):
6
@web.authenticated
7
def post(self):
8
"""POST set user spawner data"""
9
- user = self.get_current_user()
+ if hasattr(self, 'current_user'):
10
+ # Jupyterhub compatability, (september 2018, d79a99323ef1d)
11
+ user = self.current_user
12
+ else:
13
+ # Previous jupyterhub, 0.9.4 and before.
14
+ user = self.get_current_user()
15
data = self.get_json_body()
16
for key, value in data.items():
17
if hasattr(user.spawner, key):
0 commit comments