Skip to content

Commit 2197950

Browse files
committed
Don't enable disabled maps when adding new maps
1 parent 4933380 commit 2197950

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manager/sql.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
sql = {
33
# used in add_maps_to_database.py
44
"select_map_filenames": "select filename from map",
5-
"update_map_priorities": "update map set priority = priority + 1",
5+
"update_map_priorities": """
6+
update map set priority = priority + 1
7+
where priority >= 0
8+
""",
69
"insert_map_filenames": "insert into map (filename, players) values (%s, %s)",
710

811
# used in delete_some_old_submissions.py

0 commit comments

Comments
 (0)