What is your GitHub username so I can get you access to some code examples?
Here examples of the same file in 2 branches of getting attachments from emails: https://github.com/shield-legal/gcp-integrations/blob/main/email_processing/imap.py https://github.com/shield-legal/gcp-integrations/blob/fixing-db-issues/email_processing/imap.py
from func_fill_db.lawruler import LawRuler can be replaced by from email_processing.lawruler_class import LawRuler (The 2 files should be the same). Here is that LawRuler class: https://github.com/shield-legal/gcp-integrations/blob/main/email_processing/lawruler_class.py
LR_API_SECRET="3RsxCggviuYBdBZQ15DT1faJFOPRJLMG"
SELECT lq.**, cq.**
FROM case_question cq
LEFT JOIN lead_question lq ON id=questionid
LEFT JOIN lead l on lq.leadid = l.id
WHERE
l.casetypeid IN ({", ".join(["%s"] ** len(case_types))})
AND cq.casetypeid IN ({", ".join(["%s"] ** len(case_types))})
ORDER BY headerid ASC, priority ASC
Hey Dustin, what table holds the Default### id's?
Not a table. Here are some of them, I still need to find the doc with all of them: https://docs.google.com/spreadsheets/d/11vlVZdga6tmzhMWZoAgJeCBwedXeZO_MZnaSNIijEM4/edit?gid=534236854#gid=534236854
They also show up in the case_question table without the c- in front. lawrulerfield='11'
so instead of a question, it's just "lawrulerield='11'"
lawrulerfield is a column in the case_question table. I was giving an example to find them in the sql
Here are my notes from that meeting: ```82-85 reports convert from lr email report to automated generate & upload to onedrive 1 folder per campaign (they will create) report file named with the date to not override currently excel files run the reports at midnight create a mapping between LR case type (id) and the folders combine redudent columns (questions)
ask about if the folder runs out of space or otherwise errors
look into using user credentials?
get reformatting template/params from Aiden & Brittany get reports that do not need modification from Brittany (LR report)
function that generates a report similar to LR in BQ for later use and allows for column modifications (it will auto deploy on commit to branch [dev] or main [prod]): PR with scheduled function: https://github.com/shield-legal/lawruler-ui/pull/4 current cloud scheduler: https://console.cloud.google.com/cloudscheduler/jobs/edit/us-west4/LR_Report_Builder?inv=1&invt=Ab4xoA&project=tort-intake-professionals current cloud function: https://console.cloud.google.com/run/detail/us-west4/test-func-casetype-bq/metrics?inv=1&invt=Ab4xoA&project=tort-intake-professionals```
Hey Dustin, I need access to that cloud scheduler https://console.cloud.google.com/cloudscheduler/jobs/edit/us-west4/LR_Report_Builder?inv=1&invt=Ab4x-w&project=tort-intake-professionals
My mistake, permission has been granted
The cloud scheduler json payload is controlled by this page: https://shieldlegal.dev/reporting/lawruler/scheduled_bigquery The code which is: https://github.com/shield-legal/internal-tools-site/blob/main/reporting/lawruler/scheduled_bigquery/views.py