Skip to content

Commit

Permalink
missing package_result for resource view fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavin2897 committed Nov 6, 2024
1 parent 548a32c commit 12fcc66
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{% set data_dict = {'inchi': pkg.get('inchi'), 'smiles': pkg.get('smiles'), 'inchi_key': pkg.get('inchi_key'), 'exact_mass' : pkg.get('exactmass'), 'molecular_formula': pkg.get('molecular_formula') } %}

{% set dest_url = h.url_for('rdkit_visuals.display_image', package_name = pkg.get('id'), _external=True) %}
{# {% set molecule_formula = h.molecule_data(package_name = pkg.get('id')) %} #}
{% set molecule_formula,exact_mass,inchi,iupac_name,molecule_name = h.get_molecule_data(package_id = package_result[0]['id']) %}
{% set mol_formula,exact_mass,inchi,iupac_name,molecule_name = h.get_molecule_data(package_id = pkg.get('id')) %}
{% set alter_names = h.alternate_names(package_name = pkg.get('id')) %}}


Expand Down

0 comments on commit 12fcc66

Please sign in to comment.