mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
[ci] auto-format
This commit is contained in:
parent
8e8f62b1b6
commit
1eef94f77a
1 changed files with 2 additions and 1 deletions
|
|
@ -277,7 +277,8 @@ class StartupTasks:
|
|||
for plugin in all_plugins:
|
||||
date, name = plugin.get_name_and_release_date
|
||||
plugin_dictionary[date] = name
|
||||
sorted_dict = dict(sorted(plugin_dictionary.items(), key=lambda x: datetime.strptime(x[0], '%d-%m-%Y'), reverse=True))
|
||||
sorted_dict = dict(sorted(plugin_dictionary.items(),
|
||||
key=lambda x: datetime.strptime(x[0], '%d-%m-%Y'), reverse=True))
|
||||
for iterator, value in enumerate(sorted_dict.values()):
|
||||
if iterator < new_plugin_count:
|
||||
new_plugins.append(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue