From 1f756cf429e72a2cba4f715ba0ab6f6fb1c28779 Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 22 Oct 2018 12:08:20 -0400 Subject: [PATCH] Remove some comments and rename variable --- flag/flag.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/flag/flag.py b/flag/flag.py index 573e1bc..702e834 100644 --- a/flag/flag.py +++ b/flag/flag.py @@ -72,19 +72,14 @@ class Flag(Cog): """Flag a member""" guild = ctx.guild await self._check_flags(guild) - # clashroyale = self.bot.get_cog('clashroyale') - # if clashroyale is None: - # await ctx.send("Requires clashroyale cog installed") - # return flag = self._flag_template() - expiredate = date.today() - expiredate += timedelta(days=await self.config.guild(guild).days()) + expire_date = date.today() + timedelta(days=await self.config.guild(guild).days()) flag["reason"] = reason - flag["expireyear"] = expiredate.year - flag["expiremonth"] = expiredate.month - flag["expireday"] = expiredate.day + flag["expireyear"] = expire_date.year + flag["expiremonth"] = expire_date.month + flag["expireday"] = expire_date.day # flags = await self.config.guild(guild).flags.get_raw(str(member.id), default=[]) # flags.append(flag)