From e49623bc587b048ad437eb534d79cd3206c1766d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 6 Oct 2019 19:21:01 +0200 Subject: bin/get-assignment: ignore duplicate orders --- bin/get-assignment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/get-assignment b/bin/get-assignment index e82b87b..b7cdb8a 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -397,7 +397,7 @@ next_building=$( printf '`exists_unblocked` DESC' printf ';\n' - printf 'INSERT INTO `orders`(`order`)' + printf 'INSERT IGNORE INTO `orders`(`order`)' printf ' SELECT' printf ' MIN(`ordered_considered_build_assignments`.`order`)' printf ' FROM `ordered_considered_build_assignments`' -- cgit v1.2.3-70-g09d2