Skip to content

Commit

Permalink
Roughed in code for sharing jpeg instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
esitarski committed Jul 22, 2024
1 parent 4798cf4 commit 2724d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CrossMgrVideo/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,10 @@ def updateTriggerPhotoCount( self, id, frames=None ):

def getPhotoById( self, id ):
with self.dbLock, self.conn:
row = self.conn.execute( 'SELECT jpg FROM photo WHERE id=?', (id,) ).fetchone()
row = self.conn.execute( 'SELECT ts,jpg FROM photo WHERE id=?', (id,) ).fetchone()
if row is None:
raise ValueError( 'Nonexistent photo id={}'.format(id) )
return _sharedRep(row[0])
return _sharedRep(row[1])

def getBestTriggerPhoto( self, id ):
'''
Expand Down

0 comments on commit 2724d2e

Please sign in to comment.