-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mon recap] Modification de la source du barometre de mon recap + ajout du département sur toutes les tables #383
Conversation
25bbc7e
to
31f2a95
Compare
tests drop cascade
removing a bad dptmt view
31f2a95
to
f705858
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good!
drop table if exists monrecap.barometre cascade;""" | ||
) | ||
|
||
tables = ["Commandes", "Contacts", "Baromètre - Airflow"] | ||
table_mapping = {"Commandes": "Commandes_v0", "Contacts": "Contacts_v0"} | ||
tables = ["Commandes", "Contacts"] | ||
for table_name in tables: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tu pourrais enlever ligne 32 et faire for table_name in tables.keys()
(bonne pratique pr pas avoir besoin de changer deux lignes si tu traites plus de tables demain)
@@ -37,15 +39,22 @@ def monrecap_airtable(**kwargs): | |||
df["Nom Departement"] = df["Code Postal"].apply( | |||
lambda cp: "-".join([item for item in departments.get_department(cp) if item is not None]) | |||
) | |||
if table_name == "Contacts": | |||
elif table_name == "Contacts": | |||
# fixing Annaelle's double quotes, if you read this I'll get my revenge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attends je bug ton if
devient un elif
? il manque un if
avant non ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JAI RIEN DIT - j'ai oublié de cliquer sur un bouton
@@ -37,15 +39,22 @@ def monrecap_airtable(**kwargs): | |||
df["Nom Departement"] = df["Code Postal"].apply( | |||
lambda cp: "-".join([item for item in departments.get_department(cp) if item is not None]) | |||
) | |||
if table_name == "Contacts": | |||
elif table_name == "Contacts": | |||
# fixing Annaelle's double quotes, if you read this I'll get my revenge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JAI RIEN DIT - j'ai oublié de cliquer sur un bouton
**Carte Notion : **
Pourquoi ?
Checks