wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Update contributions.py to include color_map for "Draft" and correct user filter

Open sxl451 opened this issue 3 years ago • 1 comments

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.

sxl451 avatar Aug 26 '22 18:08 sxl451

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.

sxl451 avatar Aug 29 '22 15:08 sxl451

closing this. please open if required.

phot0n avatar Oct 28 '22 07:10 phot0n