remove an inadvertent booby trap
This commit is contained in:
parent
72b3316291
commit
e5ae74881a
1 changed files with 2 additions and 2 deletions
|
@ -41,11 +41,11 @@ def canonical_wikilink(wikilink):
|
|||
def canonical_date(wikilink):
|
||||
date = parser.get_date_data(wikilink).date_obj
|
||||
try:
|
||||
new_wikilink = date.isoformat().split("T")[0]
|
||||
wikilink = date.isoformat().split("T")[0]
|
||||
except:
|
||||
pass
|
||||
|
||||
return new_wikilink
|
||||
return wikilink
|
||||
|
||||
|
||||
@lru_cache(maxsize=1) #memoize this
|
||||
|
|
Loading…
Reference in a new issue