X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/dcf6146e9914ff3c166f242b72f04a8934d65148..42398bc94b95b5a115396f14c3c1dde6fb6808a5:/floof/websetup.py?ds=sidebyside diff --git a/floof/websetup.py b/floof/websetup.py index 815832d..06c0e9c 100644 --- a/floof/websetup.py +++ b/floof/websetup.py @@ -22,13 +22,13 @@ def setup_app(command, conf, vars): ### Sample data # Users from floof.model.users import IdentityURL, User - identity_url = IdentityURL(url=u'http://eevee.livejournal.com/') - user = User(name=u'Eevee') - user.identity_urls.append(identity_url) + if not User.query.filter_by(name=u'eevee').count(): + identity_url = IdentityURL(url=u'http://eevee.livejournal.com/') + user = User(name=u'eevee') + user.identity_urls.append(identity_url) model.Session.commit() - ### Filesystem stuff # Only necessary if we're using the filesystem for storage. # And we are!