Commit 563ec032 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor fixes and linting.

parent 4a83a900
Pipeline #75150 passed with stages
in 22 minutes and 29 seconds
......@@ -37,7 +37,6 @@ import {help as userdataHelp, default as UserdataPage} from './UserdataPage'
import ResolveDOI from './dataset/ResolveDOI'
import FAQ from './FAQ'
import EntryQuery from './entry/EntryQuery'
import KeepState from './KeepState'
export const ScrollContext = React.createContext({scrollParentRef: null})
......
......@@ -273,6 +273,10 @@ class DFTMetadata(MSection):
return config.services.unavailable_value
def update_group_hash(self):
user_id = None
uploader = self.m_parent.uploader
if uploader is not None:
user_id = uploader.user_id
self.group_hash = utils.hash(
self.m_parent.formula,
self.spacegroup,
......@@ -281,7 +285,7 @@ class DFTMetadata(MSection):
self.code_name,
self.code_version,
self.m_parent.with_embargo,
self.m_parent.uploader.user_id)
user_id)
def apply_domain_metadata(self, backend):
from nomad.normalizing.system import normalized_atom_labels
......
Markdown is supported
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