mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
feat: filter official
This commit is contained in:
1 parent
6219fb6a78
commit
133966ef36
3 files changed
+28
-8
No files matched your search
+7
-4
@@ -38,7 +38,7 @@ mod_store = Gtk.ListStore(str, str, str, float, str)
|
||||
#cf. log_cols
|
||||
log_store = Gtk.ListStore(str, str, str, str)
|
||||
#cf. browser_cols
|
||||
server_store = Gtk.ListStore(str, str, str, str, int, int, int, str, int)
|
||||
server_store = Gtk.ListStore(str, str, str, str, int, int, int, str, int, str)
|
||||
|
||||
default_tooltip = "Select a row to see its detailed description"
|
||||
server_tooltip = [None, None]
|
||||
@@ -96,7 +96,9 @@ filters = {
|
||||
"Full": False,
|
||||
"Low pop": True,
|
||||
"Non-ASCII": False,
|
||||
"Duplicate": False
|
||||
"Duplicate": False,
|
||||
"Official": True,
|
||||
"Unoffic.": True,
|
||||
}
|
||||
|
||||
|
||||
@@ -553,7 +555,7 @@ def parse_server_rows(data):
|
||||
lines = data.stdout.splitlines()
|
||||
reader = csv.reader(lines, delimiter=delimiter)
|
||||
try:
|
||||
rows = [[row[0], row[1], row[2], row[3], int(row[4]), int(row[5]), int(row[6]), row[7], int(row[8])] for row in reader if row]
|
||||
rows = [[row[0], row[1], row[2], row[3], int(row[4]), int(row[5]), int(row[6]), row[7], int(row[8]), row[9]] for row in reader if row]
|
||||
except IndexError:
|
||||
return 1
|
||||
for row in rows:
|
||||
@@ -1609,7 +1611,8 @@ class TreeView(Gtk.TreeView):
|
||||
if (column_title == "Map"):
|
||||
column.set_fixed_width(300)
|
||||
|
||||
self.append_column(column)
|
||||
if i != 10:
|
||||
self.append_column(column)
|
||||
|
||||
self.update_first_col(mode.dict["label"])
|
||||
|
||||
|
||||
Reference in new issue
Block a user