Mercurial > gemma
comparison pkg/imports/bn.go @ 1533:8fc1a2298acb
Pseudo fixed unstaging of bottlenecks.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 07 Dec 2018 14:36:06 +0100 |
parents | 24445a618513 |
children | cf0ca4a9812a |
comparison
equal
deleted
inserted
replaced
1532:44e094330272 | 1533:8fc1a2298acb |
---|---|
49 "waterway.bottlenecks", | 49 "waterway.bottlenecks", |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 const ( | 53 const ( |
54 // TODO: waterway.bottlenecks needs an integer id column. | |
54 bnStageDoneSQL = ` | 55 bnStageDoneSQL = ` |
55 UPDATE waterway.sounding_results SET staging_done = true | 56 UPDATE waterway.bottlenecks SET staging_done = true |
56 WHERE id = ( | 57 WHERE id IN ( |
57 SELECT key from waterway.track_imports | 58 SELECT key from waterway.track_imports |
58 WHERE import_id = $1 AND | 59 WHERE import_id = $1 AND |
59 relation = 'waterway.sounding_results'::regclass)` | 60 relation = 'waterway.bottlenecks'::regclass)` |
60 ) | 61 ) |
61 | 62 |
62 // StageDone moves the imported bottleneck out of the staging area. | 63 // StageDone moves the imported bottleneck out of the staging area. |
63 func (bnJobCreator) StageDone( | 64 func (bnJobCreator) StageDone( |
64 ctx context.Context, | 65 ctx context.Context, |