forked from 0x2620/pandora
sync padma.jsonc, use timesaccessed if votes are not available
This commit is contained in:
parent
f8c85107e8
commit
b855c153e0
3 changed files with 191 additions and 86 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue