CodeforNepal / nepalmap_federal

Instance of NepalMap for federal Nepal. Join us!
https://nepalmap.org
MIT License
14 stars 20 forks source link

Fixing National Parks generate an error #100 Issue #101

Closed pratimakandel closed 4 years ago

pratimakandel commented 4 years ago

@cliftonmcintosh @nikeshbalami Each numerical value in the site gets converted into Nepali format number system. However for some reason '0' values are considered as an empty string. Thus, the error was coming from the Nepal format .py file "decimal.InvalidOperation: Invalid literal for Decimal: ' ' " The most simplest way I could think of to solve this issue was to catch the empty string values and return 0. I am still confused why it reads 0 as an empty string probably "SQL syntax."
If this looks good, I can create another pull request for nepalmap.org site. Please let me know if there is anything missing.

cliftonmcintosh commented 4 years ago

This has been deployed to https://beta.nepalmap.org