mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 17:24:15 +00:00
ensure profile key is a str
This commit is contained in:
@@ -216,7 +216,9 @@ class Cfg:
|
|||||||
""" returns a list of dotfiles for a specific profile """
|
""" returns a list of dotfiles for a specific profile """
|
||||||
if profile not in self.prodots:
|
if profile not in self.prodots:
|
||||||
return []
|
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):
|
def get_profiles(self):
|
||||||
""" returns all defined profiles """
|
""" returns all defined profiles """
|
||||||
|
|||||||
Reference in New Issue
Block a user