Mercurial Hosting > traffic-intelligence
diff trafficintelligence/storage.py @ 1265:0f5bebd62a55
minor modifications
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 24 May 2024 16:15:38 -0400 |
parents | 28aeec1f2788 |
children | 785c86013d2c |
line wrap: on
line diff
--- a/trafficintelligence/storage.py Wed May 22 17:11:40 2024 -0400 +++ b/trafficintelligence/storage.py Fri May 24 16:15:38 2024 -0400 @@ -497,7 +497,7 @@ cursor.execute('INSERT INTO interactions VALUES({}, {}, {}, {}, {})'.format(interaction.getNum(), roadUserNumbers[0], roadUserNumbers[1], interaction.getFirstInstant(), interaction.getLastInstant())) def saveInteractionsToSqlite(filename, interactions): - 'Saves the interactions in the table' + 'Saves only the interactions in the table' with sqlite3.connect(filename) as connection: cursor = connection.cursor() try: