mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Downloader] Only show updates for cog .py files (#1316)
This commit is contained in:
parent
fec0e936f6
commit
b21bb9aeb5
@ -654,7 +654,13 @@ class Downloader:
|
||||
continue
|
||||
|
||||
status, _, cogpath = f.partition('\t')
|
||||
cogname = os.path.split(cogpath)[-1][:-3] # strip .py
|
||||
split = os.path.split(cogpath)
|
||||
cogdir, cogname = split[-2:]
|
||||
cogname = cogname[:-3] # strip .py
|
||||
|
||||
if len(split) != 2 or cogdir != cogname:
|
||||
continue
|
||||
|
||||
if status not in ret:
|
||||
ret[status] = []
|
||||
ret[status].append(cogname)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user