Alert admin about unsupported time precision

This commit is contained in:
Edward Betts 2021-11-13 16:39:03 +00:00
parent 7b181cd1b3
commit 1771f19f56
2 changed files with 17 additions and 4 deletions

View file

@ -176,8 +176,6 @@ def format_wikibase_time(v):
p = v["precision"]
t = v["time"]
assert p in (7, 9, 10, 11)
# TODO: handle dates with century precision (7)
# example: https://www.wikidata.org/wiki/Q108266998