mirror of
https://amiok.net/gitea/W1CDN/aprs_tool.git
synced 2025-07-26 21:36:15 +00:00
Don't autodelete yet.
This commit is contained in:
@@ -64,12 +64,16 @@ def main():
|
||||
try:
|
||||
# Insert data
|
||||
conn.execute(sql, list(a.values()))
|
||||
|
||||
# TODO update stations table here
|
||||
|
||||
|
||||
conn.commit()
|
||||
|
||||
# TODO remove packets that are older ('created') than a limit set in config.ini
|
||||
# "5 minutes" also works
|
||||
conn.execute("DELETE FROM frames WHERE created < DATETIME('now', '"+config['Settings']['keep_time']+"')")
|
||||
conn.commit()
|
||||
#conn.execute("DELETE FROM frames WHERE created < DATETIME('now', '"+config['Settings']['keep_time']+"')")
|
||||
#conn.commit()
|
||||
except:
|
||||
print("Error with SQLite!")
|
||||
except:
|
||||
|
Reference in New Issue
Block a user