Updates to manage.py
Tweaks to node_type comments validation code.
This commit is contained in:
@@ -697,22 +697,25 @@ def populate_node_types(old_ids={}):
|
|||||||
},
|
},
|
||||||
# Collection of ratings, keyed by user
|
# Collection of ratings, keyed by user
|
||||||
'ratings': {
|
'ratings': {
|
||||||
'type': 'dict',
|
'type': 'list',
|
||||||
'schema': {
|
'schema': {
|
||||||
'user': {
|
'type': 'dict',
|
||||||
'type': 'objectid'
|
'schema': {
|
||||||
},
|
'user': {
|
||||||
'is_positive': {
|
'type': 'objectid'
|
||||||
'type': 'boolean'
|
},
|
||||||
},
|
'is_positive': {
|
||||||
# Weight of the rating based on user rep and the context.
|
'type': 'boolean'
|
||||||
# Currently we have the following weights:
|
},
|
||||||
# - 1 auto null
|
# Weight of the rating based on user rep and the context.
|
||||||
# - 2 manual null
|
# Currently we have the following weights:
|
||||||
# - 3 auto valid
|
# - 1 auto null
|
||||||
# - 4 manual valid
|
# - 2 manual null
|
||||||
'weight': {
|
# - 3 auto valid
|
||||||
'type': 'integer'
|
# - 4 manual valid
|
||||||
|
'weight': {
|
||||||
|
'type': 'integer'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -726,13 +729,7 @@ def populate_node_types(old_ids={}):
|
|||||||
'status': {},
|
'status': {},
|
||||||
'rating_positive': {},
|
'rating_positive': {},
|
||||||
'rating_negative': {},
|
'rating_negative': {},
|
||||||
'ratings': {
|
'ratings': {},
|
||||||
'schema': {
|
|
||||||
'user': {},
|
|
||||||
'is_positive': {},
|
|
||||||
'weight': {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'confidence': {}
|
'confidence': {}
|
||||||
},
|
},
|
||||||
'parent': {
|
'parent': {
|
||||||
|
Reference in New Issue
Block a user