You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: redesign/importing/import-document-state.py
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -214,8 +214,8 @@ def date_in_match(match):
214
214
215
215
re_telechat_agenda=re.compile(r"(Placed on|Removed from) agenda for telechat(| - %s) by"%date_re_str)
216
216
re_telechat_changed=re.compile(r"Telechat date (was|has been) changed to (<b>)?%s(</b>)? from"%date_re_str)
217
-
re_ballot_position=re.compile(r"\[Ballot Position Update\] (New position, (?P<position>.*), has been recorded (|for (?P<for>.*) )|Position (|for (?P<for2>.*) )has been changed to (?P<position2>.*) from .*)by (?P<by>.*)")
218
-
re_ballot_issued=re.compile(r"Ballot has been issued(| by)")
217
+
re_ballot_position=re.compile(r"\[Ballot Position Update\] (New position, (?P<position>.*), has been recorded(| for (?P<for>.*) )|Position (|for (?P<for2>.*) )has been changed to (?P<position2>.*) from .*)(|by (?P<by>.*))")
218
+
re_ballot_issued=re.compile(r"Ballot has been issued")
219
219
re_state_changed=re.compile(r"(State (has been changed|changed|Changes) to <b>(?P<to>.*)</b> from (<b>|)(?P<from>.*)(</b> by|)|Sub state has been changed to (?P<tosub>.*) from (?P<fromsub>.*))")
220
220
re_note_changed=re.compile(r"(\[Note\]: .*'.*'|Note field has been cleared)", re.DOTALL)
221
221
re_draft_added=re.compile(r"Draft [Aa]dded (by .*)?( in state (?P<state>.*))?")
ad_name=match.group('for') ormatch.group('for2') ormatch.group('by') # some of the old positions don't specify who it's for, in that case assume it's "by", the person who entered the position
291
+
# some of the old positions don't specify who it's for, in
292
+
# that case assume it's "by", the person who entered the
293
+
# position
294
+
ad_name=match.group('for') ormatch.group('for2') ormatch.group('by') or (u"%s %s"% (c.created_by.first_name, c.created_by.last_name) ifc.created_byelse"")
0 commit comments