#1172 Ensure that the id is an int before querying it to the db in the markdown
Merged by pingou. Opened by pingou.
fix_markdown  into  master

Download 1172.patch
no initial comment

This pattern is used 4 times in that file, I suggest to create a _check_int function.
Something like

def _check_int(idx, message=""):
  try:
    int(idx)
  except:
      return message

return text in line 69 fails as text is never defined before it gets executed.

1 new commit added

  • Fix setting the text variable before returning it (Thanks Haikel)

:thumbsup:

rebased

:thumbsup:

Thanks :)

Pull-Request has been merged by pingou

Metadata