Fix how we select changes from CORE DB in datasync

to placate SQLAlchemy warnings
This commit is contained in:
Lance Edgar 2023-06-10 22:13:42 -05:00
parent 87bd1faa58
commit 6e50ea58a8

View file

@ -54,7 +54,7 @@ class CoreOfficeOpWatcher(DataSyncWatcher):
def get_changes(self, lastrun):
session = CoreSession()
result = session.execute(sa.sql.select([self.corepos_changes]))
result = session.execute(self.corepos_changes.select())
changes = result.fetchall()
session.close()
if changes: