Skip to content

Commit

Permalink
chores: sud-radio
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed Mar 1, 2024
1 parent 22b8981 commit a821795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions quotaclimat/data_processing/mediatree/api_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ async def update_pg_data(exit_event):

def get_channels():
if(os.environ.get("ENV") == "docker" or os.environ.get("CHANNEL") is not None):
default_channel = os.environ.get("CHANNEL") or "france24"
default_channel = os.environ.get("CHANNEL") or "france2"
logging.warning(f"Only one channel of env var CHANNEL {default_channel} (default to france2) is used")

channels = [default_channel]
else: #prod - all channels
logging.warning("All channels are used")
return ["tf1", "france2", "fr3-idf", "france5", "m6", "arte", "d8", "tmc", "bfmtv", "lci", "franceinfotv", "itele",
"europe1", "france-culture", "france-inter", "sudradio", "rmc", "rtl", "france24"]
"europe1", "france-culture", "france-inter", "sud-radio", "rmc", "rtl", "france24"]

return channels

Expand Down
2 changes: 1 addition & 1 deletion test/sitemap/test_mediatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_get_channels():
assert get_channels() == ["france2"] # default for docker compose config
else:
assert get_channels() == ["tf1", "france2", "fr3-idf", "france5", "m6", "arte", "d8", "tmc", "bfmtv", "lci", "franceinfotv", "itele",
"europe1", "france-culture", "france-inter", "nrj", "rmc", "rtl", "rtl2"]
"europe1", "france-culture", "france-inter", "sud-radio", "rmc", "rtl", "france24"]

def test_save_to_pg_keyword():
conn = connect_to_db()
Expand Down

0 comments on commit a821795

Please sign in to comment.