Fix replace bug
This commit is contained in:
parent
4e2b053bec
commit
ba755729ff
1 changed files with 1 additions and 1 deletions
2
wtf.py
2
wtf.py
|
|
@ -136,7 +136,7 @@ class Wtf:
|
||||||
term = await self.db.get(aid)
|
term = await self.db.get(aid)
|
||||||
print(term)
|
print(term)
|
||||||
if term is None:
|
if term is None:
|
||||||
await room.send("No explanation with that od {aid} exists.")
|
await room.send(f"No explanation with id {aid} exists.", message.mid)
|
||||||
else:
|
else:
|
||||||
await self.db.delete(aid)
|
await self.db.delete(aid)
|
||||||
logger.info(f"{mention(message.sender.nick)} deleted explanation with id {aid}")
|
logger.info(f"{mention(message.sender.nick)} deleted explanation with id {aid}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue