From 6f6787d2739dd6c296c36f54a6859cb7d206a4ae Mon Sep 17 00:00:00 2001 From: Paola Petrelli Date: Thu, 17 Oct 2024 13:30:05 +1100 Subject: [PATCH] small change to update_db.py --- src/mopdata/update_db.py.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mopdata/update_db.py.txt b/src/mopdata/update_db.py.txt index 0e5edf1..caed2bc 100644 --- a/src/mopdata/update_db.py.txt +++ b/src/mopdata/update_db.py.txt @@ -77,6 +77,8 @@ def update_map(conn, varid, ctable): args = {k: row[k] for k in keys} for k,v in keys2.items(): args[k] = row[v] + # you need to manually add datadir to the maps + # if you want to be update infile! if 'datadir' in row.keys(): paths = row['file_structure'].split() infile = ''