sync padma.jsonc, use timesaccessed if votes are not available

This commit is contained in:
j 2011-12-04 13:44:15 +01:00
commit b855c153e0
3 changed files with 191 additions and 86 deletions

View file

@ -39,9 +39,8 @@ def load_config():
config['keys'][key['id']] = key
settings.CONFIG = config
admin = len(settings.CONFIG['userLevels']) - 1
if not 'syncdb' in sys.argv:
if not 'syncdb' in sys.argv and not 'sqldiff' in sys.argv:
settings.ADMIN = tuple([(u.username, u.email)
for u in User.objects.filter(profile__level=admin)])
settings.MANAGERS = settings.ADMINS