aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-06-28 01:45:17 +0200
committerGravatar Numerlor <[email protected]>2020-06-28 01:45:17 +0200
commit6532618a503a55653499089a2d6a4ca43be7e2bf (patch)
tree252486bee269e5aa079b4201fce346fa36de5f07
parentOnly include one newline for `p` tags in `li` elements. (diff)
Only update added inventory instead of all.
-rw-r--r--bot/cogs/doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py
index c1e8cebcf..7c4beb075 100644
--- a/bot/cogs/doc.py
+++ b/bot/cogs/doc.py
@@ -504,7 +504,7 @@ class Doc(commands.Cog):
# Rebuilding the inventory can take some time, so lets send out a
# typing event to show that the Bot is still working.
async with ctx.typing():
- await self.refresh_inventory()
+ await self.update_single(package_name, base_url, inventory_url)
await ctx.send(f"Added package `{package_name}` to database and refreshed inventory.")
@docs_group.command(name='delete', aliases=('remove', 'rm', 'd'))