mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:37:07 +00:00
Rename variable.
To be consistent with the other methods.
This commit is contained in:
@@ -186,7 +186,7 @@ class Datastore:
|
|||||||
# We do not commit if we've been passed a cursor, instead
|
# We do not commit if we've been passed a cursor, instead
|
||||||
# we assume that we are in the middle of a transaction
|
# 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.
|
Save preplot data.
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ class Datastore:
|
|||||||
lines (iterable): should be a collection of lines returned from
|
lines (iterable): should be a collection of lines returned from
|
||||||
one of the preplot-reading functions (see preplots.py).
|
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
|
have been read. It will be added to the survey's `file` table so that
|
||||||
it can be monitored for changes.
|
it can be monitored for changes.
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ class Datastore:
|
|||||||
with self.conn.cursor() as cursor:
|
with self.conn.cursor() as cursor:
|
||||||
cursor.execute("BEGIN;")
|
cursor.execute("BEGIN;")
|
||||||
|
|
||||||
hash = self.add_file(path, cursor)
|
hash = self.add_file(filepath, cursor)
|
||||||
count=0
|
count=0
|
||||||
for line in lines:
|
for line in lines:
|
||||||
count += 1
|
count += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user