Skip to content

Commit

Permalink
triage bot: test for recently triaged issues is silently failing
Browse files Browse the repository at this point in the history
  • Loading branch information
robertylewis committed Feb 1, 2021
1 parent 1a7791b commit f708f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post_issue_on_zulip.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def message_date(id):

posted_topics = zulip_client.get_stream_topics(zulip_client.get_stream_id('triage')['stream_id'])['topics']
pattern = re.compile(r'#(\d+)')
posted_topics = {v[0]: message_date(t['max_id']) for (t, v) in ((t, pattern.findall(t['name'])) for t in posted_topics) if len(v) > 0}
posted_topics = {int(v[0]): message_date(t['max_id']) for (t, v) in ((t, pattern.findall(t['name'])) for t in posted_topics) if len(v) > 0}

print(posted_topics)

Expand Down

0 comments on commit f708f61

Please sign in to comment.