Fix download model binary script to get correct lines on parsing table
authorGustavo Serra Scalet <gsscalet@gmail.com>
Thu, 6 Aug 2015 17:37:20 +0000 (14:37 -0300)
committerGustavo Serra Scalet <gsscalet@gmail.com>
Thu, 6 Aug 2015 17:37:20 +0000 (14:37 -0300)
commitfda9229a426d9c0e4496c700099a7126da72ba64
treefe13444954d2311a1a44a43c2d731bbfc324ee44
parent4c23e93a95db0c6c6c5d4239070966e3bdc24fdc
Fix download model binary script to get correct lines on parsing table

The base reference of "bottom" variable was relative to the "top+1" and
not to the whole readlines output. It ended up without all the lines.

That could work for some gists however for the model I was looking for (see
below) the sha1 key was not being parsed, as it was missing the last line.

tested with the following gist:
longjon/1bf3aa1e0b8e788d7e1d
scripts/download_model_binary.py