cs373gc-fall-2016 / Startup-Fairy

IDB 4
2 stars 2 forks source link

Fix invalid nested json #67

Closed ilinum closed 7 years ago

ilinum commented 7 years ago

For people, their roles would be invalid json. Example:

{{Wetpaint,c:1},{"Blue Nile",c:4993},{Fatbrain.com,c:233024},{"Founder's Co-op",f:1017},{"Bain & Company",c:18661},{eHarmony,c:537},{Betfair,c:2361},{Flutter.com,c:268504}}
ilinum commented 7 years ago

What happened was, in populate_db.py we would call str() on lists of companies and roles instead of json.dumps().

This should be fixed now via https://github.com/cs373gc-fall-2016/Startup-Fairy/commit/dfb0964f9e12a5dce8ec55e97bb9bf8f8ffe94d9 but need to be tested, and data to be reimported into the database