mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
commit
43c707a010
1
changelog.d/5003.bugfix
Normal file
1
changelog.d/5003.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix issue #4596 so synapse_port_db script works with --curses option on Python 3. Contributed by Anders Jensen-Waud <anders@jensenwaud.com>.
|
@ -811,7 +811,7 @@ class CursesProgress(Progress):
|
|||||||
middle_space = 1
|
middle_space = 1
|
||||||
|
|
||||||
items = self.tables.items()
|
items = self.tables.items()
|
||||||
items.sort(key=lambda i: (i[1]["perc"], i[0]))
|
items = sorted(items, key=lambda i: (i[1]["perc"], i[0]))
|
||||||
|
|
||||||
for i, (table, data) in enumerate(items):
|
for i, (table, data) in enumerate(items):
|
||||||
if i + 2 >= rows:
|
if i + 2 >= rows:
|
||||||
|
Loading…
Reference in New Issue
Block a user