kossiitkgp / kwoc-2018

Web app for Kharagpur Winter of Code, 2018
https://kwoc.kossiitkgp.org
MIT License
0 stars 0 forks source link

Tag_scrapper, Capitalize first letter if not and keep it all fully capitalized if tag scrapped if fully in caps #120

Closed Ayushk4 closed 5 years ago

Ayushk4 commented 5 years ago

https://github.com/kossiitkgp/kwoc/blob/0f06d5e7dc51fefe9445dbfd3a8a8c0b9b47d6f5/tag_scrapper/main.py#L40

As of now what the package does is convert all the strings to ones with the first letter capitalized. For example: python to Python, but also converts HTML to Html, we need the code to capitalize only the first letter and not convert the remaining to lowercase, i.e. we would want HTML to be kept as HTML only but python should be changed to Python

cc @xypnox @arnav-t

arnav-t commented 5 years ago

If tag[0].islower() -> tag.capitalize() ? @Ayushk4

xypnox commented 5 years ago

Capitalize only the first letter,

node["name"][0].capitalize()
xypnox commented 5 years ago

By this I mean Using

node["name"][0] = node["name"][0].capitalize()
topics.append(node["name"]) 
shreyas-kowshik commented 5 years ago

https://github.com/kossiitkgp/kwoc/pull/122

Ayushk4 commented 5 years ago

Closing this. via #122