diff --git a/docs/examples/python/mockdatasoruce.py b/docs/examples/python/mockdatasoruce.py index 85c6df6cb9d51c4adb7f425057c8a975927e407f..6172fda7b399d9a6c570360baa568115698f0611 100644 --- a/docs/examples/python/mockdatasoruce.py +++ b/docs/examples/python/mockdatasoruce.py @@ -35,7 +35,6 @@ class MockDataSource: next 1000 rows for each table. return: {tableId:[row,...]} """ -<<<<<<< HEAD # generate 1000 timestamps ts = [] for _ in range(1000): @@ -48,14 +47,6 @@ class MockDataSource: rows = [table_name + ',' + t + ',' + values for t in ts] result.append((table_id, rows)) return result -======= - self.row += 1 - ts = self.start_ms + 100 * self.row - - # just add timestamp to each row - # (tableId, "tableName,ts,current,voltage,phase,location,groupId") - return map(lambda t: (t[0], t[1] + ',' + str(ts) + "," + t[2]), self.data) ->>>>>>> 8687dee8fddc27d6d10f009b0d2a12140e47de95 if __name__ == '__main__':