summaryrefslogtreecommitdiff
path: root/src/helsinki.at
diff options
context:
space:
mode:
Diffstat (limited to 'src/helsinki.at')
-rw-r--r--src/helsinki.at/rhimport/importer.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helsinki.at/rhimport/importer.go b/src/helsinki.at/rhimport/importer.go
index 406c58e..abc99e8 100644
--- a/src/helsinki.at/rhimport/importer.go
+++ b/src/helsinki.at/rhimport/importer.go
@@ -455,7 +455,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) {
rmCartOnErr := false
rmCutOnErr := false
res = &ImportResult{ResponseCode: http.StatusOK}
- if ctx.ShowId != 0 {
+ if ctx.ShowId != 0 { // Import to a show
var show_carts []uint
if show_carts, err = ctx.getShowInfo(); err != nil {
return
@@ -476,7 +476,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) {
}
}
rmCartOnErr = true
- } else if ctx.GroupName != "" {
+ } else if ctx.GroupName != "" { // Import to music pool
if err = ctx.getMusicInfo(); err != nil {
return
}
@@ -484,7 +484,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) {
return
}
rmCartOnErr = true
- } else if ctx.Cart != 0 && ctx.Cut == 0 {
+ } else if ctx.Cart != 0 && ctx.Cut == 0 { // Import to Cart
if ctx.ClearCart {
if err = remove_add_cart_cut(ctx, res); err != nil || res.ResponseCode != http.StatusOK {
return
@@ -505,7 +505,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) {
}
}
- if ctx.Cart != 0 && ctx.Cut != 0 {
+ if ctx.Cart != 0 && ctx.Cut != 0 { // Import to specific Cut within Cart
if err = import_audio(ctx, res); err != nil || res.ResponseCode != http.StatusOK {
if err != nil {
rhl.Printf("Fileimport has failed (Cart/Cut %d/%d): %s", ctx.Cart, ctx.Cut, err)