mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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
|
continue
|
||||||
|
|
||||||
status, _, cogpath = f.partition('\t')
|
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:
|
if status not in ret:
|
||||||
ret[status] = []
|
ret[status] = []
|
||||||
ret[status].append(cogname)
|
ret[status].append(cogname)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user