소스 검색

Misplaced submissions can't be 'resumbmitted'; page_special_user is only significant for CHART_PEND and CHART_DRAFT.

tags/v0.1^2
Ben Kurtovic 12 년 전
부모
커밋
609b1cce75
1개의 변경된 파일9개의 추가작업 그리고 8개의 파일을 삭제
  1. +9
    -8
      bot/tasks/afc_statistics.py

+ 9
- 8
bot/tasks/afc_statistics.py 파일 보기

@@ -653,12 +653,12 @@ class Task(BaseTask):
"""
notes = ""

ignored_charts = [CHART_ACCEPT, CHART_DECLINE]
ignored_charts = [CHART_NONE, CHART_ACCEPT, CHART_DECLINE]
if chart in ignored_charts:
return notes

statuses = self.get_statuses(content)
if "D" in statuses:
if "D" in statuses and chart != CHART_MISPLACE:
notes += "|nr=1" # Submission was resubmitted

if len(content) < 500:
@@ -675,11 +675,12 @@ class Task(BaseTask):
if time_since_modify > max_time:
notes += "|no=1" # Submission hasn't been touched in over 4 days

creator = self.site.get_user(s_user)
try:
if creator.blockinfo():
notes += "|nb=1" # Submitter is blocked
except wiki.UserNotFoundError: # Likely an IP
pass
if chart in [CHART_PEND, CHART_DRAFT]:
submitter = self.site.get_user(s_user)
try:
if submitter.blockinfo():
notes += "|nb=1" # Submitter is blocked
except wiki.UserNotFoundError: # Likely an IP
pass

return notes

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