X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/490b45cdc311a09db0266a3f974289e3979bf2ea..03c8b0becd6264301a64e9201588c60c9b588ad1:/floof/websetup.py diff --git a/floof/websetup.py b/floof/websetup.py index a4e935f..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!