Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 399abe1b authored by Gray Fawkes's avatar Gray Fawkes
Browse files

feat: Récupération des fichiers bdpm #26

parent a5567240
No related branches found
Tags 1.0.2
No related merge requests found
...@@ -66,7 +66,7 @@ async function uploadToDatabaseG (dest, filename) { // eslint-disable-line no-al ...@@ -66,7 +66,7 @@ async function uploadToDatabaseG (dest, filename) { // eslint-disable-line no-al
if ( filename === 'cis' ) { if ( filename === 'cis' ) {
data.split('\n').map(row => { data.split('\n').map(row => {
let rowArray = row.split('\t') let rowArray = row.split('\t')
if ( filename === 'cis' && rowArray[0] !== '' ) { // CIS file if ( rowArray[0] !== '' ) {
let aamDate = rowArray[7].substring(6,10) + '-' + rowArray[7].substring(3,5) + '-' + rowArray[7].substring(0,2) let aamDate = rowArray[7].substring(6,10) + '-' + rowArray[7].substring(3,5) + '-' + rowArray[7].substring(0,2)
let line = { let line = {
cis: rowArray[0].trim(), cis: rowArray[0].trim(),
......
# Ignore everything in this directory
*
# Except this file
!.gitignore
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment