File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,11 @@ def set_autoload(self, status: bool):
231
231
def get_newest_group_key (self ) -> GroupKey :
232
232
"""group_key of the group with the most recently modified preset."""
233
233
paths = []
234
- for path in glob .glob (os .path .join (glob .escape (PathUtils .get_preset_path ()), "*/*.json" ,)):
234
+ pattern = os .path .join (
235
+ glob .escape (PathUtils .get_preset_path ()),
236
+ "*/*.json" ,
237
+ )
238
+ for path in glob .glob (pattern ):
235
239
if self ._reader_client .groups .find (key = PathUtils .split_all (path )[- 2 ]):
236
240
paths .append ((path , os .path .getmtime (path )))
237
241
@@ -249,7 +253,10 @@ def get_newest_preset_name(self) -> Name:
249
253
paths = [
250
254
(path , os .path .getmtime (path ))
251
255
for path in glob .glob (
252
- os .path .join (glob .escape (PathUtils .get_preset_path (self .active_group .name )), "*.json" ,)
256
+ os .path .join (
257
+ glob .escape (PathUtils .get_preset_path (self .active_group .name )),
258
+ "*.json" ,
259
+ )
253
260
)
254
261
]
255
262
if not paths :
You can’t perform that action at this time.
0 commit comments