mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +00:00
Do not import gun data into online shots.
These shots will be deleted when the raw P1 is imported deleting the gun data, but the gun data file will show as having been imported. (#29)
This commit is contained in:
@@ -488,7 +488,7 @@ class Datastore:
|
||||
# The shots should already exist, e.g., from a P1 import
|
||||
# …but what about if the SMSRC file gets read *before* the P1?
|
||||
# We need to check
|
||||
qry = "SELECT count(*) FROM raw_shots WHERE sequence = %s;"
|
||||
qry = "SELECT count(*) FROM raw_shots WHERE sequence = %s AND hash != '*online*';"
|
||||
values = (fileinfo["sequence"],)
|
||||
cursor.execute(qry, values)
|
||||
shotcount = cursor.fetchone()[0]
|
||||
|
||||
Reference in New Issue
Block a user