mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
The use of `popitem` makes the right side of line 642 return a tuple of the form `(repo, (old, new))` instead of a dictionary of the form `{repo: (old, new)}`, as expected by the left hand side of the same line.
This commit is contained in:
parent
95acf7402d
commit
1cca5ee5cb
@ -639,7 +639,7 @@ class RepoManager:
|
||||
"""
|
||||
ret = {}
|
||||
for repo_name, _ in self._repos.items():
|
||||
repo, (old, new) = await self.update_repo(repo_name)
|
||||
repo, (old, new) = (await self.update_repo(repo_name)).popitem()
|
||||
if old != new:
|
||||
ret[repo] = (old, new)
|
||||
return ret
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user