Skip to content

Commit

Permalink
Fix notebook_id in result of assignment list #24
Browse files Browse the repository at this point in the history
  • Loading branch information
ykazakov committed Oct 2, 2024
1 parent c2e18cb commit fdfb688
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ngshare_exchange/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def nb_key(nb):

info['notebooks'] = []
for notebook in notebooks:
if self.cached:
if self.cached or info['status'] == 'fetched':
nb_info = {
'notebook_id': os.path.splitext(
os.path.split(notebook)[1]
Expand All @@ -392,11 +392,6 @@ def nb_key(nb):
}
elif self.inbound:
nb_info = {'notebook_id': notebook['notebook_id']}
elif info['status'] == 'fetched':
nb_info = {
'notebook_id': notebook,
'path': os.path.abspath(notebook),
}
else:
nb_info = {'notebook_id': notebook}
if info['status'] != 'submitted':
Expand Down

0 comments on commit fdfb688

Please sign in to comment.