mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
Remove a useless line
This commit is contained in:
parent
29d1fb1ea8
commit
fc89aa847c
@ -21,7 +21,6 @@ def zhihu_daily(args_text, ctx_msg):
|
|||||||
sub_url = '/latest'
|
sub_url = '/latest'
|
||||||
else:
|
else:
|
||||||
m = re.match('(\d{4})-(\d{2})-(\d{2})', arg)
|
m = re.match('(\d{4})-(\d{2})-(\d{2})', arg)
|
||||||
# and arg >= '20130519':
|
|
||||||
if m and ''.join(m.groups()) >= '20130519':
|
if m and ''.join(m.groups()) >= '20130519':
|
||||||
thedate = date(year=int(m.group(1)), month=int(m.group(2)), day=int(m.group(3)))
|
thedate = date(year=int(m.group(1)), month=int(m.group(2)), day=int(m.group(3)))
|
||||||
sub_url = '/before/' + (thedate + timedelta(days=1)).strftime('%Y%m%d')
|
sub_url = '/before/' + (thedate + timedelta(days=1)).strftime('%Y%m%d')
|
||||||
|
Loading…
Reference in New Issue
Block a user