Skip to content

Commit 5de5e97

Browse files
committed
Fixed a docalias problem with generate-draft-aliases
- Legacy-Id: 16275
1 parent 2ab2bd0 commit 5de5e97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/bin/generate-draft-aliases

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ if __name__ == '__main__':
128128
afile = open(settings.DRAFT_ALIASES_PATH, "w")
129129
vfile = open(settings.DRAFT_VIRTUAL_PATH, "w")
130130

131+
stdout.write("Writing aliases file: %s\n" % afile.name)
132+
stdout.write("Writing virtual file: %s\n" % vfile.name)
133+
131134
afile.write(signature)
132135
vfile.write(signature)
133136
vfile.write("%s anything\n" % settings.DRAFT_VIRTUAL_DOMAIN)
@@ -145,7 +148,7 @@ if __name__ == '__main__':
145148
alias_domains = ['ietf.org', ]
146149
for draft in interesting_drafts.distinct().iterator():
147150
# Omit RFCs, we care only about drafts
148-
if draft.docalias_set.filter(name__startswith='rfc'):
151+
if draft.docalias.filter(name__startswith='rfc'):
149152
if (datetime.datetime.now() - draft.latest_event(type='published_rfc').time) > datetime.timedelta(days= 365 * 3 ):
150153
continue
151154

0 commit comments

Comments
 (0)