mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-04-22 09:06:38 +00:00
route in progress, region stitching is disabled by default
This commit is contained in:
@@ -21,6 +21,7 @@ public class RegionRepository : IRegionRepository
|
||||
zoom_level as ZoomLevel, status,
|
||||
csv_file_path as CsvFilePath, summary_file_path as SummaryFilePath,
|
||||
tiles_downloaded as TilesDownloaded, tiles_reused as TilesReused,
|
||||
stitch_tiles as StitchTiles,
|
||||
created_at as CreatedAt, updated_at as UpdatedAt
|
||||
FROM regions
|
||||
WHERE id = @Id";
|
||||
@@ -36,6 +37,7 @@ public class RegionRepository : IRegionRepository
|
||||
zoom_level as ZoomLevel, status,
|
||||
csv_file_path as CsvFilePath, summary_file_path as SummaryFilePath,
|
||||
tiles_downloaded as TilesDownloaded, tiles_reused as TilesReused,
|
||||
stitch_tiles as StitchTiles,
|
||||
created_at as CreatedAt, updated_at as UpdatedAt
|
||||
FROM regions
|
||||
WHERE status = @Status
|
||||
@@ -50,10 +52,12 @@ public class RegionRepository : IRegionRepository
|
||||
const string sql = @"
|
||||
INSERT INTO regions (id, latitude, longitude, size_meters, zoom_level,
|
||||
status, csv_file_path, summary_file_path,
|
||||
tiles_downloaded, tiles_reused, created_at, updated_at)
|
||||
tiles_downloaded, tiles_reused, stitch_tiles,
|
||||
created_at, updated_at)
|
||||
VALUES (@Id, @Latitude, @Longitude, @SizeMeters, @ZoomLevel,
|
||||
@Status, @CsvFilePath, @SummaryFilePath,
|
||||
@TilesDownloaded, @TilesReused, @CreatedAt, @UpdatedAt)
|
||||
@TilesDownloaded, @TilesReused, @StitchTiles,
|
||||
@CreatedAt, @UpdatedAt)
|
||||
RETURNING id";
|
||||
|
||||
return await connection.ExecuteScalarAsync<Guid>(sql, region);
|
||||
@@ -73,6 +77,7 @@ public class RegionRepository : IRegionRepository
|
||||
summary_file_path = @SummaryFilePath,
|
||||
tiles_downloaded = @TilesDownloaded,
|
||||
tiles_reused = @TilesReused,
|
||||
stitch_tiles = @StitchTiles,
|
||||
updated_at = @UpdatedAt
|
||||
WHERE id = @Id";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user