Skip to content

Instantly share code, notes, and snippets.

@berntxspeed
Created December 2, 2016 01:39
Show Gist options
  • Save berntxspeed/a301493df102e31f8023098a801d27a8 to your computer and use it in GitHub Desktop.
Save berntxspeed/a301493df102e31f8023098a801d27a8 to your computer and use it in GitHub Desktop.
In [1]: from server.app.common.models import Customer
In [2]: from server.app.data.services.classes.data_pusher import DataPusher
In [3]: dp = DataPusher(db, Customer)
In [4]: query = Customer.query.filter(Customer.eml_sends!=None)
In [5]: resp = dp.sync_query('customers_with_email_sends', query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment