Skip to content

Commit

Permalink
- upload_session.completed_step = 'time' if _ALLOW_TIME_STEP else 'c…
Browse files Browse the repository at this point in the history
…heck'
  • Loading branch information
afabiani committed Nov 8, 2018
1 parent 8c000f6 commit b498dff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/upload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def check_step_view(request, upload_session):
layer_eligible_for_time_dimension(request,
import_session.tasks[0].layer, upload_session=upload_session)
if has_time_dim:
upload_session.completed_step = 'time' if _ALLOW_TIME_STEP else 'check'
upload_session.completed_step = 'check'
else:
# This command skip completely 'time' configuration
upload_session.completed_step = 'time' if _ALLOW_TIME_STEP else 'check'
Expand Down Expand Up @@ -465,6 +465,7 @@ def time_step_view(request, upload_session):
'layer_attributes': layer_values[0].keys(),
'async_upload': is_async_step(upload_session)
}
upload_session.completed_step = 'check'
return render(request, 'upload/layer_upload_time.html', context=context)
else:
upload_session.completed_step = 'time' if _ALLOW_TIME_STEP else 'check'
Expand Down

0 comments on commit b498dff

Please sign in to comment.