mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
Merge pull request #494 from aclist/change/unmodded-filter
change: separate modded into unmodded
This commit is contained in:
3 files changed
+7
-2
No files matched your search
@@ -22,11 +22,12 @@ class FilterManager:
|
|||||||
strings.filter_night: True,
|
strings.filter_night: True,
|
||||||
strings.filter_full: show_full,
|
strings.filter_full: show_full,
|
||||||
strings.filter_official: True,
|
strings.filter_official: True,
|
||||||
strings.filter_nonascii: False,
|
strings.filter_modded: True,
|
||||||
strings.filter_lowpop: True,
|
strings.filter_lowpop: True,
|
||||||
strings.filter_unofficial: True,
|
strings.filter_unofficial: True,
|
||||||
|
strings.filter_unmodded: True,
|
||||||
strings.filter_duplicate: False,
|
strings.filter_duplicate: False,
|
||||||
strings.filter_modded: True,
|
strings.filter_nonascii: False,
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: strings
|
# TODO: strings
|
||||||
@@ -43,6 +44,7 @@ class FilterManager:
|
|||||||
strings.filter_unofficial: "Third-party servers",
|
strings.filter_unofficial: "Third-party servers",
|
||||||
strings.filter_duplicate: "Duplicates of existing servers (usually spoofed)",
|
strings.filter_duplicate: "Duplicates of existing servers (usually spoofed)",
|
||||||
strings.filter_modded: "Servers with one or more mods",
|
strings.filter_modded: "Servers with one or more mods",
|
||||||
|
strings.filter_unmodded: "Servers with no mods",
|
||||||
}
|
}
|
||||||
|
|
||||||
self.active_keyword = ""
|
self.active_keyword = ""
|
||||||
|
|||||||
@@ -243,6 +243,8 @@ class ProxyModelManager:
|
|||||||
rows = [row for row in rows if (row[4] / row[5] * 100) > 30]
|
rows = [row for row in rows if (row[4] / row[5] * 100) > 30]
|
||||||
case strings.filter_modded:
|
case strings.filter_modded:
|
||||||
rows = [row for row in rows if not row[11]]
|
rows = [row for row in rows if not row[11]]
|
||||||
|
case strings.filter_unmodded:
|
||||||
|
rows = [row for row in rows if row[11]]
|
||||||
return rows
|
return rows
|
||||||
|
|
||||||
def filter_toggle_on(self, filters: tuple[str]) -> list:
|
def filter_toggle_on(self, filters: tuple[str]) -> list:
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ filter_duplicate = "Duplicate"
|
|||||||
filter_official = "Official"
|
filter_official = "Official"
|
||||||
filter_unofficial = "Unofficial"
|
filter_unofficial = "Unofficial"
|
||||||
filter_modded = "Modded"
|
filter_modded = "Modded"
|
||||||
|
filter_unmodded = "Unmodded"
|
||||||
|
|
||||||
# maps
|
# maps
|
||||||
all_maps = "All maps"
|
all_maps = "All maps"
|
||||||
|
|||||||
Reference in new issue
Block a user