1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

ensure profile key is a str

This commit is contained in:
deadc0de6
2017-09-16 12:54:57 +02:00
parent 2decabee53
commit 853c10ca0e

View File

@@ -216,7 +216,9 @@ class Cfg:
""" returns a list of dotfiles for a specific profile """
if profile not in self.prodots:
return []
return sorted(self.prodots[profile], key=lambda x: x.key, reverse=True)
return sorted(self.prodots[profile],
key=lambda x: str(x.key),
reverse=True)
def get_profiles(self):
""" returns all defined profiles """