Skip to content

Commit

Permalink
added table id
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezra Peisach committed Aug 21, 2024
1 parent e433e66 commit b775592
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wwpdb/apps/ann_tasks_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
__author__ = "Ezra Peisach"
__email__ = "[email protected]"
__license__ = "Apache 2.0"
__version__ = "0.38"
__version__ = "0.39"
13 changes: 7 additions & 6 deletions wwpdb/apps/ann_tasks_v2/utils/GetCovalentBond.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __processCloseContactContent(self, jsonObj):
<br/>
<table class="table table-bordered table-striped width100">
<tr>
<th rowspan="2">Id</th>
<th colspan="5">Atom1</th>
<th colspan="5">Atom2</th>
<th rowspan="2">Leaving<br/>atoms</th>
Expand Down Expand Up @@ -125,21 +126,21 @@ def __processCloseContactContent(self, jsonObj):
if tupL[5]:
atom += "(" + tupL[5] + ")"
#
tablerow += "<td>" + tupL[0] + "</td>" + "<td>" + tupL[1] + "</td>" + "<td>" + tupL[2] + tupL[3] + "</td>" + "<td>" + atom + "</td>" + "<td>" + tupL[6] + "</td>"
tablerow += "<td>" + tupL[16] + "</td><td>" + tupL[0] + "</td><td>" + tupL[1] + "</td><td>" + tupL[2] + tupL[3] + "</td><td>" \
+ atom + "</td><td>" + tupL[6] + "</td>"
atom = tupL[11]
if tupL[12]:
atom += "(" + tupL[12] + ")"
#
tablerow += "<td>" + tupL[7] + "</td>" + "<td>" + tupL[8] \
+ "</td>" + "<td>" + tupL[9] + tupL[10] + "</td>" + "<td>" \
+ atom + "</td>" + "<td>" + tupL[13] + "</td>" + "<td>" \
+ tupL[14] + "</td>"
tablerow += "<td>" + tupL[7] + "</td><td>" + tupL[8] + "</td><td>" + tupL[9] + tupL[10] + "</td><td>" + atom + "</td><td>" \
+ tupL[13] + "</td><td>" + tupL[14] + "</td>"
#
tupL[6] = tupL[6].replace("_", "-")
tupL[13] = tupL[13].replace("_", "-")
bond_id = "covalent_bond_" + str(count)
#
tablerow += "<td>" + tupL[15] + '&nbsp; &nbsp; &nbsp; &nbsp; <input type="checkbox" id="' + bond_id + '" name="' + bond_id + '" value="' + "_".join(tupL) + '"/></td>'
tablerow += "<td>" + tupL[15] + '&nbsp; &nbsp; &nbsp; &nbsp; <input type="checkbox" id="' + bond_id + '" name="' + bond_id \
+ '" value="' + "_".join(tupL[:16]) + '"/></td>'
#
tablerow += "</tr>\n"
count += 1
Expand Down

0 comments on commit b775592

Please sign in to comment.