Commit e1fb1f3a authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

fix flake8 issues

parent 5d7922db
Pipeline #31144 passed with stages
in 18 minutes and 47 seconds
......@@ -1045,7 +1045,6 @@ class Compound(AutoFillableModel):
except EntryNotFoundError:
pass
def compute_fsp3(self):
"""
Compute FSP3 from CSP3 and number of carbons
......
......@@ -523,7 +523,7 @@ def get_pubchem_id(inchikey: str) -> str:
def get_ligand_id(smiles: str) -> str:
endpoint = f"http://www.rcsb.org/pdb/rest/smilesQuery?"
endpoint = "http://www.rcsb.org/pdb/rest/smilesQuery?"
text = requests.get(
endpoint, params={"smiles": smiles, "search_type": "exact"}
).text
......
......@@ -102,4 +102,4 @@ class IppidbAdmin(admin.AdminSite):
"""
launch_set_compound_links()
messages.add_message(request, messages.INFO, "DB links update launched")
return redirect("/admin/ippidb/job")
\ No newline at end of file
return redirect("/admin/ippidb/job")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment