wiki
wiki copied to clipboard
Update contributions.py to include color_map for "Draft" and correct user filter
color_map in contributions.py did not include a color for "Draft" causing the page to crash if a draft is saved in contributions. This PR adds "Draft" as the color red to color map to fix this issue.
get_user_contributions function was filtering the contributions by the field "owner" but no field with that name exists in the wiki patch doctype instead the field should be "raised_by" this was adjusted in the second commit.
closing this. please open if required.