diff --git a/bin/datastore.py b/bin/datastore.py index e010dd5..4f33648 100644 --- a/bin/datastore.py +++ b/bin/datastore.py @@ -186,7 +186,7 @@ class Datastore: # We do not commit if we've been passed a cursor, instead # we assume that we are in the middle of a transaction - def save_preplots(self, lines, path, preplot_class, epsg = 0): + def save_preplots(self, lines, filepath, preplot_class, epsg = 0): """ Save preplot data. @@ -195,7 +195,7 @@ class Datastore: lines (iterable): should be a collection of lines returned from one of the preplot-reading functions (see preplots.py). - path (string): the full path to the preplot file from where the lines + filepath (string): the full path to the preplot file from where the lines have been read. It will be added to the survey's `file` table so that it can be monitored for changes. @@ -209,7 +209,7 @@ class Datastore: with self.conn.cursor() as cursor: cursor.execute("BEGIN;") - hash = self.add_file(path, cursor) + hash = self.add_file(filepath, cursor) count=0 for line in lines: count += 1