Skip to content

Commit

Permalink
Fix validation sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Goldman committed Jan 5, 2023
1 parent 0c28791 commit 1ea03db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/Textract.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,8 @@
" itemName = cell.text\n",
" elif(c == 4 and isFloat(cell.text)):\n",
" value = float(cell.text)\n",
" if(value > 1000):\n",
" is_summary_row = (r == len(table.rows) - 1)\n",
" if value > 1000 and not is_summary_row:\n",
" warning += \"{} is greater than $1000.\".format(itemName)\n",
"if(warning):\n",
" print(\"\\nReview needed:\\n====================\\n\" + warning)"
Expand Down

0 comments on commit 1ea03db

Please sign in to comment.