summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Generators/Cfg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py
index 7d3eba57a..8f5e3b741 100644
--- a/src/lib/Server/Generators/Cfg.py
+++ b/src/lib/Server/Generators/Cfg.py
@@ -33,11 +33,11 @@ class FileEntry(FileBacked):
except IndexError:
most2 = 0
if most1 == most2:
- if self.name.split('.')[1][0] not in ['C', 'B']:
+ if self.name.split('.')[-1][0] not in ['C', 'B']:
return 0
# need to tiebreak with numeric prio
- prio1 = int(self.name.split('.')[1][1:2])
- prio2 = int(other.name.split('.')[1][1:2])
+ prio1 = int(self.name.split('.')[-1][1:3])
+ prio2 = int(other.name.split('.')[-1][1:3])
return prio1 - prio2
else:
return most1 - most2