rossyndicate / poudre_sonde_network

MIT License
0 stars 8 forks source link

make sure that incoming data packets don't get overwritten on the same day #102

Closed juandlt-csu closed 8 months ago

juandlt-csu commented 9 months ago

from #101 from @kathryn-willi suggestion: A way to make sure files don't get overwritten on the same day... If we replace the current write_csv() call in api_puller with the following code that includes the full end_dt:

write_csv(one_df, paste0(dump_dir, "/", site, "_", str_replace(str_replace(substr(end_dt, 1, 16), "[:\\s]", "_"), ":", ""), ".csv"))

juandlt-csu commented 8 months ago

this has been incorporated in my fork, I just need to open a PR for it

kathryn-willi commented 8 months ago

ahh, yes. Good catch and looking forward to the fix!