소스 검색

Properly handle unset timestamps.

pull/15/head
Ben Kurtovic 10 년 전
부모
커밋
ce7d42badd
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      tasks/afc_undated.py

+ 4
- 2
tasks/afc_undated.py 파일 보기

@@ -99,12 +99,12 @@ class AFCUndated(Task):
elif is_talk:
aliases = self.aliases["talk"]
timestamp, reviewer = self.get_talkdata(page)
if not timestamp:
return
else:
msg = u"[[{0}]] is undated, but in a namespace I don't know how to process"
self.logger.warn(msg.format(page.title))
return
if not timestamp:
return

code = mwparserfromhell.parse(page.get())
changes = 0
@@ -119,6 +119,8 @@ class AFCUndated(Task):
else:
timestamp = self.get_timestamp(page, status)
timestamps[status] = timestamp
if not timestamp:
continue
template.add("ts", timestamp)
if is_talk and not has_reviewer:
template.add("reviewer", reviewer)


불러오는 중...
취소
저장