Skip to content

Commit 10e948d

Browse files
authored
Fix hardcoded field name
1 parent 10da09c commit 10e948d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qgis_processing/extractPtsAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def processTc(self, tc, parameters, context):
9696
except ValueError: # when the tc is empty
9797
return
9898
gdf = gdf.convert_dtypes()
99-
gdf[self.timestamp_field] = gdf["t"].astype(str)
99+
gdf[self.timestamp_field] = gdf[self.timestamp_field].astype(str)
100100
names = [field.name() for field in self.fields_pts]
101101
names.append("geometry")
102102
gdf = gdf[names]
@@ -108,7 +108,7 @@ def processTc(self, tc, parameters, context):
108108

109109
gdf = tc.get_end_locations()
110110
gdf = gdf.convert_dtypes()
111-
gdf[self.timestamp_field] = gdf["t"].astype(str)
111+
gdf[self.timestamp_field] = gdf[self.timestamp_field].astype(str)
112112
gdf = gdf[names]
113113

114114
for _, row in gdf.iterrows():

0 commit comments

Comments
 (0)