Skip to content

Instantly share code, notes, and snippets.

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-xxxxxx-x', 'auto');
// stuff up here goes into the general GA setup
// stuff down here goes into the extra 'custom' ga code dialog box
function getParameterByName(name, url) {
var plugins;
plugins = [
// plugin for integrating save button
function(viewModel) {
var saveCmd = {
name: 'Save', // l10n happens in the template
enabled: ko.observable(true)
};
saveCmd.execute = function() {
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)