Skip to content

Commit

Permalink
timestamp should be stored as REAL
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomerritt committed Nov 25, 2024
1 parent 28724ea commit 3e2b834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adler/objectdata/AdlerData.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def _get_database_connection(self, filepath, create_new=False):
if not database_exists and create_new: # we need to make the table and a couple of starter columns
con = sqlite3.connect(filepath)
cur = con.cursor()
cur.execute("CREATE TABLE AdlerData(ssObjectId INTEGER PRIMARY KEY, timestamp TEXT)")
cur.execute("CREATE TABLE AdlerData(ssObjectId INTEGER PRIMARY KEY, timestamp REAL)")
elif not database_exists and not create_new:
logger.error("ValueError: Database cannot be found at given filepath.")
raise ValueError("Database cannot be found at given filepath.")
Expand Down

0 comments on commit 3e2b834

Please sign in to comment.