Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Michael Menzel
Enhort
Commits
bf00cb29
Commit
bf00cb29
authored
Feb 03, 2020
by
Michael Menzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug to keep selected tracks after uploading custom background sites
parent
2e215bc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
frontend/src/main/java/de/thm/spring/controller/UploadController.java
.../main/java/de/thm/spring/controller/UploadController.java
+6
-2
No files found.
frontend/src/main/java/de/thm/spring/controller/UploadController.java
View file @
bf00cb29
...
...
@@ -155,6 +155,7 @@ public class UploadController {
Session
currentSession
=
sessionControll
.
getSession
(
httpSession
.
getId
());
StatisticsCollector
stats
=
StatisticsCollector
.
getInstance
();
String
name
=
currentSession
.
getOriginalFilename
();
try
{
...
...
@@ -165,8 +166,11 @@ public class UploadController {
String
bgname
=
bgFile
.
getOriginalFilename
();
currentSession
.
setBgFilename
(
bgname
);
BackendCommand
backendCommand
=
// new BackendCommand(currentSession.getSites(), sitesBg, Command.Task.ANALZYE_SINGLE);
new
BackendCommand
.
Builder
(
Command
.
Task
.
ANALZYE_SINGLE
,
currentSession
.
getSites
().
getAssembly
()).
sites
(
currentSession
.
getSites
()).
sitesBg
(
sitesBg
).
build
();
BackendCommand
backendCommand
=
new
BackendCommand
.
Builder
(
Command
.
Task
.
ANALZYE_SINGLE
,
currentSession
.
getSites
().
getAssembly
())
.
tracks
(
currentSession
.
getCollector
().
getTracks
())
.
sites
(
currentSession
.
getSites
())
.
sitesBg
(
sitesBg
).
build
();
/////////// Run analysis ////////////
ResultCollector
collector
=
(
ResultCollector
)
currentSession
.
getConnector
().
runAnalysis
(
backendCommand
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment