This commit is contained in:
Sybren A. Stüvel 2016-07-06 12:50:07 +02:00
parent 5b60dad831
commit 2be94bd504

View File

@ -490,7 +490,7 @@ def files_make_public_t():
storage = GoogleCloudStorageBucket(str(f['project'])) storage = GoogleCloudStorageBucket(str(f['project']))
blob = storage.Get(variation_t['file_path'], to_dict=False) blob = storage.Get(variation_t['file_path'], to_dict=False)
if not blob: if not blob:
print('Unable to find blob for project %s file %s' %(f['project'], f['_id'])) print('Unable to find blob for project %s file %s' % (f['project'], f['_id']))
continue continue
print('Making blob public: {0}'.format(blob.path)) print('Making blob public: {0}'.format(blob.path))
@ -773,8 +773,9 @@ def update_texture_node_type():
'translucency', 'translucency',
'emission', 'emission',
'alpha' 'alpha'
] ]
node_type['dyn_schema']['files']['schema']['schema']['map_type']['allowed'] = allowed node_type['dyn_schema']['files']['schema']['schema']['map_type'][
'allowed'] = allowed
projects_collections.update( projects_collections.update(
{'_id': project['_id']}, project) {'_id': project['_id']}, project)
@ -991,5 +992,6 @@ def sync_project_groups(user_email, fix):
{'$set': {'groups': list(user_groups)}}) {'$set': {'groups': list(user_groups)}})
log.info('Updated %i user.', result.modified_count) log.info('Updated %i user.', result.modified_count)
if __name__ == '__main__': if __name__ == '__main__':
manager.run() manager.run()