Skip to content

Commit

Permalink
Merge pull request #233 from idoneam/dev
Browse files Browse the repository at this point in the history
Release Burnside Basement Patch 4
  • Loading branch information
davidlougheed authored Dec 11, 2019
2 parents 4bbdab2 + f7d363c commit 79fb1c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cogs/subscribers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
METRO_BLUE_LINE: 0x0083CA,
}

METRO_INTERIM_STATUS = "No information"

METRO_NORMAL_SERVICE_MESSAGE = "Normal métro service"

# Default values by line number for status
Expand Down Expand Up @@ -137,7 +139,8 @@ def check_status(line_number, response):
line_number = line_status[0]
cached_status = line_status[1]
line_name, current_status = check_status(line_number, response)
if current_status != cached_status:
if (current_status != cached_status
and current_status != METRO_INTERIM_STATUS):
metro_status[line_number] = current_status
metro_status_update = discord.Embed(
title=line_name,
Expand Down

0 comments on commit 79fb1c4

Please sign in to comment.