Mercurial > gemma
comparison pkg/controllers/importqueue.go @ 1495:d26e3e1fcff1
The global import queue already knows which kinds of imports it supports.
So there is no need to have another table to track these as a list.
This is only a thing which can async potentially. So this list is removed.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 04 Dec 2018 18:20:31 +0100 |
parents | d349618c6b50 |
children | 34315277f2d6 |
comparison
equal
deleted
inserted
replaced
1494:04967d6565fa | 1495:d26e3e1fcff1 |
---|---|
111 if st := req.FormValue("states"); st != "" { | 111 if st := req.FormValue("states"); st != "" { |
112 states = toTextArray(st, imports.ImportStateNames) | 112 states = toTextArray(st, imports.ImportStateNames) |
113 } | 113 } |
114 | 114 |
115 if ks := req.FormValue("kinds"); ks != "" { | 115 if ks := req.FormValue("kinds"); ks != "" { |
116 kinds = toTextArray(ks, imports.ImportKindNames) | 116 kinds = toTextArray(ks, imports.ImportKindNames()) |
117 } | 117 } |
118 | 118 |
119 stmt.WriteString(selectImportsSQL) | 119 stmt.WriteString(selectImportsSQL) |
120 if states != nil || kinds != nil { | 120 if states != nil || kinds != nil { |
121 stmt.WriteString(" WHERE ") | 121 stmt.WriteString(" WHERE ") |