Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dataforgoodfr/quotaclimat
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: dataforgoodfr/quotaclimat
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop/raph_economie
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 3 commits
  • 9 files changed
  • 1 contributor

Commits on May 29, 2024

  1. added econ keywords

    RDiPiazza committed May 29, 2024
    Copy the full SHA
    4ebc14e View commit details
  2. fixed array issue

    RDiPiazza committed May 29, 2024
    Copy the full SHA
    c3f6af7 View commit details

Commits on Nov 24, 2024

  1. committing minor changes

    RDiPiazza committed Nov 24, 2024
    Copy the full SHA
    1ad5367 View commit details
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ services:
build:
context: ./
dockerfile: Dockerfile
#entrypoint: ["poetry", "run", "pytest","-vv", "-o", "log_cli=true", "--cov-report", "term:skip-covered", "--cov=quotaclimat", "--cov=postgres", "test/"]
entrypoint: ["sleep", "12000"] # use to debug the container if needed
entrypoint: ["poetry", "run", "pytest","-vv", "-o", "log_cli=true", "--cov-report", "term:skip-covered", "--cov=quotaclimat", "--cov=postgres", "test/"]
# entrypoint: ["sleep", "12000"] # use to debug the container if needed
environment:
ENV: docker
# CHANNEL: "fr3-idf"
@@ -116,8 +116,8 @@ services:
#UPDATE: "true" # to batch update PG
#UPDATE_PROGRAM_ONLY: "true" # to batch update PG but only channel with program
# START_OFFSET: 100 # to batch update PG from a offset
START_DATE: 1714026680 # to test batch import
CHANNEL : france2 # to reimport only one channel
START_DATE: 1717127469 # to test batch import
# CHANNEL : france2 # to reimport only one channel
MEDIATREE_USER : /run/secrets/username_api
MEDIATREE_PASSWORD: /run/secrets/pwd_api
MEDIATREE_AUTH_URL: https://keywords.mediatree.fr/api/auth/token/
24 changes: 24 additions & 0 deletions econ_from_excel_to_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import json
import pandas as pd

input_file_path = 'C:/Users/RaphaëldiPIAZZA/OneDrive - eleven/0_ADMIN/EXTERNE/Baromètre/eco/mots_cles_econ.xlsx'
output_file_path = 'keywords_economie.json'

df = pd.read_excel(input_file_path)

KEY_WORDS_ECONOMIE = []

for index, row in df.iterrows():
theme_name = 'economie'
if pd.isna(row['Thème']):
row['Thème'] = ''
cur_dict = {
'keyword': row['Mot clé']
, 'category': row['Thème']
}
KEY_WORDS_ECONOMIE.append(cur_dict)

with open(output_file_path, 'w', encoding='utf-8') as file:
json.dump(KEY_WORDS_ECONOMIE, file, ensure_ascii=False, indent=4)

print(f"Keywords written in {output_file_path}")
15 changes: 15 additions & 0 deletions host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}
Loading